TimeInputControllers class

Utility class for time input processing and validation

Provides static methods for:

  • Time input formatting (digits → "HH:MM z")
  • Input validation and parsing
  • Text processing utilities

All methods use cached regex patterns for optimal performance.

Constructors

TimeInputControllers()

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

convertToTimeOfDay(String timeString, {bool isUtc = true, (DateTime?, TimeOfDay?) defaultTime = (null, null)}) TimeOfDay
Converts formatted time string to TimeOfDay object
formatTimeInput(String input, {bool isUtc = true, bool showLocalIndicator = false}) String
Formats time input text into display format
keepDigitsOnly(String input) String
Extracts only digit characters from input string
timeInputValidator(String? input) String?
Validates time input format and values