TimePickerPainter class

Main Class for the Time Picker Painter.

Inheritance

Constructors

TimePickerPainter({required int init, required int end, int? disableTimeStart, int? disableTimeEnd, Color? disabledRangeColor, Color? errorColor, required Widget child, required int primarySectors, required int secondarySectors, required SelectionChanged<int> onSelectionChange, required SelectionChanged<int> onSelectionEnd, required TimePickerDecoration pickerDecoration, required bool isInitHandlerSelectable, required bool isEndHandlerSelectable, required bool isSelectableHandlerMoveAble, bool drawInitHandlerOnTop = false})
Creates a TimePickerPainter.

Properties

child Widget
widget that would be mounted inside the circle
final
disabledRangeColor Color?
final
disableTimeEnd int?
final
disableTimeStart int?
final
drawInitHandlerOnTop bool
used to set priority to draw init or end handler on the top
final
end int
the end value
final
errorColor Color?
final
hashCode int
The hash code for this object.
no setterinherited
init int
the initial value
final
isEndHandlerSelectable bool
used to enabled or disabled Selection of End Handler
final
isInitHandlerSelectable bool
used to enabled or disabled Selection of Init Handler
final
isSelectableHandlerMoveAble bool
used to enabled or disabled the Movement of Init and End Handler when its not Selectable disable the dragging of both handlers
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onSelectionChange SelectionChanged<int>
callback function when init and end change
final
onSelectionEnd SelectionChanged<int>
callback function when init and end finish
final
pickerDecoration TimePickerDecoration
used to decorate the our widget
final
primarySectors int
the number of primary sectors to be painted
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondarySectors int
the number of secondary sectors to be painted
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _TimePickerPainterState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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 DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
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 ==(Object other) bool
The equality operator.
inherited