TimeOnly.withHourMinutesSeconds constructor
Creates a new time-only object from the provided hours, minutes, and seconds.
Hours must be between 0-23 (inclusive), while minutes and seconds must be between 0-59 (inclusive).
Parameters:
hours
— The hours.minutes
— The minutes.seconds
— The seconds.
Implementation
factory TimeOnly.withHourMinutesSeconds(
{required int hours, required int minutes, required int seconds}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_TimeOnly_createWithHourMinutesSeconds(
hours, minutes, seconds, errorHandler);
});
return TimeOnly._withHandle(handle);
}