TimeUtils class
Utility functions for time-related operations in the time picker.
This class provides helper methods for time validation, formatting, and conversion between different time representations.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isTimeInFuture(
TimeOfDay time) → bool - Checks if a given time is in the future compared to the current time.
-
isValidTimeFormat(
String timeString) → bool - Validates if a given time string is in the correct format (HH:MM).
-
stringToTimeOfDay(
String timeString) → TimeOfDay - Converts a time string to a TimeOfDay object.