TimeRange class

A time range picker (start + end time).

final TimeRange? range = await showTimeRangePicker(
  context: context,
  startTime: TimeOfDay(hour: 9, minute: 0),
  endTime: TimeOfDay(hour: 17, minute: 0),
)

Constructors

TimeRange({required TimeOfDay start, required TimeOfDay end})
const

Properties

duration → Duration
no setter
end → TimeOfDay
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → TimeOfDay
final

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