SBBTimePickerController class
A controller for SBBTimePicker that allows programmatically setting the selected time, e.g. from instrumentation tests.
Attach it to a picker via SBBTimePicker.controller. A controller can only be attached to one picker at a time.
See also:
example/integration_test/widget_tester_extensions.dart, which wraps setTime in aWidgetTester.selectSBBTimehelper that takes care of the pumping needed in widget and integration tests.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAttached → bool
-
Whether this controller is currently attached to an SBBTimePicker.
no setter
- 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
-
setTime(
TimeOfDay time, {bool animate = true}) → Future< void> - Sets the selected time of the attached SBBTimePicker.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited