MaterialTimePickerData class final

Material-specific configuration for the platform time picker.

Maps to parameters of showTimePicker on Android.

Constructors

MaterialTimePickerData({Offset? anchorPoint, Color? barrierColor, bool? barrierDismissible = kMaterialBarrierDismissible, RouteSettings? routeSettings, bool? useRootNavigator, TransitionBuilder? builder, String? barrierLabel, TimePickerEntryMode initialEntryMode = kDefaultInitialEntryMode, String? cancelText, String? confirmText, String? helpText, String? errorInvalidText, String? hourLabelText, String? minuteLabelText, ValueChanged<TimePickerEntryMode>? onEntryModeChanged, Orientation? orientation, Icon? switchToInputEntryModeIcon, Icon? switchToTimerEntryModeIcon, bool emptyInitialInput = kDefaultEmptyInitialInput})
Creates Material-specific time picker configuration.
const

Properties

anchorPoint Offset?
The anchor point for the dialog positioning.
finalinherited
barrierColor Color?
Color of the modal barrier behind the dialog.
finalinherited
barrierDismissible bool?
Whether tapping the barrier dismisses the dialog.
finalinherited
barrierLabel String?
Semantic label for the barrier.
final
builder TransitionBuilder?
A builder for the dialog's content.
finalinherited
cancelText String?
Text for the cancel button.
final
confirmText String?
Text for the confirm button.
final
emptyInitialInput bool
Whether the input fields should start empty.
final
errorInvalidText String?
Error text shown when the time is invalid.
final
hashCode int
The hash code for this object.
no setterinherited
helpText String?
Help text displayed at the top of the picker.
final
hourLabelText String?
Label text for the hour input field.
final
initialEntryMode TimePickerEntryMode
The initial entry mode of the time picker (dial or input).
final
minuteLabelText String?
Label text for the minute input field.
final
onEntryModeChanged ValueChanged<TimePickerEntryMode>?
Callback when the entry mode changes.
final
orientation Orientation?
Preferred orientation of the time picker dialog.
final
routeSettings RouteSettings?
Route settings for the dialog route.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switchToInputEntryModeIcon Icon?
Icon for switching to input entry mode.
final
switchToTimerEntryModeIcon Icon?
Icon for switching to timer (dial) entry mode.
final
useRootNavigator bool?
Whether to use the root navigator for the dialog route.
finalinherited

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

Constants

kDefaultEmptyInitialInput → const bool
Default value for emptyInitialInput.
kDefaultInitialEntryMode → const TimePickerEntryMode
Default value for initialEntryMode.