TimeOnly.withString constructor

TimeOnly.withString(
  1. String timeString
)

Creates a new time-only object from the ISO 8601 time value, HH:MM:SS.

Milliseconds are not supported for TimeOnly objects.

Parameters:

  • timeString — The time.

Implementation

factory TimeOnly.withString(String timeString) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreTimeString = _CString(timeString);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_TimeOnly_createWithString(
        coreTimeString.bytes, errorHandler);
  });
  return TimeOnly._withHandle(handle);
}