CupertinoTimerPicker class

A countdown timer picker in iOS style.

This picker shows a countdown duration with hour, minute and second spinners. The duration is bound between 0 and 23 hours 59 minutes 59 seconds.

There are several modes of the timer picker listed in CupertinoTimerPickerMode.

See also:

  • CupertinoDatePicker, the class that implements different display modes of the iOS-style date picker.
  • CupertinoPicker, the class that implements a content agnostic spinner UI.
Inheritance

Constructors

CupertinoTimerPicker({CupertinoTimerPickerMode mode: CupertinoTimerPickerMode.hms, Duration initialTimerDuration: Duration.zero, int minuteInterval: 1, int secondInterval: 1, @required ValueChanged<Duration> onTimerDurationChanged })
Constructs an iOS style countdown timer picker. [...]

Properties

initialTimerDuration Duration
The initial duration of the countdown timer.
final
minuteInterval int
The granularity of the minute spinner. Must be a positive integer factor of 60.
final
mode CupertinoTimerPickerMode
The mode of the timer picker.
final
onTimerDurationChanged ValueChanged<Duration>
Callback called when the timer duration changes.
final
secondInterval int
The granularity of the second spinner. Must be a positive integer factor of 60.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style }) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a string representation of this object.
inherited
toStringDeep({String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited