WheelChooser<T> class

Inheritance

Constructors

WheelChooser({required dynamic onValueChanged(dynamic)?, required List? datas, TextStyle? selectTextStyle, TextStyle? unSelectTextStyle, int? startPosition = 0, double squeeze = 1.0, double itemSize = _defaultItemSize, double magnification = 1, double perspective = 0.01, double? listWidth, double? listHeight, FixedExtentScrollController? controller, bool horizontal = false, bool isInfinite = false, ScrollPhysics? physics})
WheelChooser.byController({required FixedExtentScrollController controller, required dynamic onValueChanged(dynamic)?, required List? datas, TextStyle? selectTextStyle, TextStyle? unSelectTextStyle, double squeeze = 1.0, double itemSize = _defaultItemSize, double magnification = 1, double perspective = 0.01, double? listWidth, double? listHeight, bool horizontal = false, bool isInfinite = false, ScrollPhysics? physics})
WheelChooser.choices({required dynamic onChoiceChanged(dynamic)?, required List<WheelChoice>? choices, TextStyle? selectTextStyle, TextStyle? unSelectTextStyle, int? startPosition = 0, double squeeze = 1.0, double itemSize = _defaultItemSize, double magnification = 1, double perspective = 0.01, double? listWidth, double? listHeight, FixedExtentScrollController? controller, bool horizontal = false, bool isInfinite = false, ScrollPhysics? physics})
WheelChooser.custom({required dynamic onValueChanged(dynamic)?, required List<Widget>? children, dynamic onChoiceChanged(dynamic)?, List? datas, int? startPosition = 0, double squeeze = 1.0, double itemSize = _defaultItemSize, double magnification = 1, double perspective = 0.01, double? listWidth, double? listHeight, FixedExtentScrollController? controller, bool horizontal = false, bool isInfinite = false, ScrollPhysics? physics})
WheelChooser.integer({required dynamic onValueChanged(dynamic)?, required int maxValue, required int minValue, int? initValue, int step = 1, TextStyle? selectTextStyle, TextStyle? unSelectTextStyle, double squeeze = 1.0, double itemSize = _defaultItemSize, double magnification = 1, double perspective = 0.01, double? listWidth, double? listHeight, FixedExtentScrollController? controller, bool horizontal = false, bool isInfinite = false, ScrollPhysics? physics, bool reverse = false})
WheelChooser.number({required dynamic onValueChanged(dynamic)?, required num maxValue, required num minValue, num? initValue, num step = 1, TextStyle? selectTextStyle, TextStyle? unSelectTextStyle, double squeeze = 1.0, double itemSize = _defaultItemSize, double magnification = 1, double perspective = 0.01, double? listWidth, double? listHeight, FixedExtentScrollController? controller, bool horizontal = false, bool isInfinite = false, ScrollPhysics? physics, dynamic onChoiceChanged(dynamic)?, bool reverse = false})

Properties

children List<Widget>?
final
choices List<WheelChoice>?
final
controller FixedExtentScrollController?
final
datas List?
final
hashCode int
The hash code for this object.
no setterinherited
horizontal bool
final
isInfinite bool
final
itemSize double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listHeight double?
final
listWidth double?
final
magnification double
final
onChoiceChanged → (dynamic Function(dynamic)?)
final
onValueChanged → (dynamic Function(dynamic)?)
final
perspective double
final
physics ScrollPhysics?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectTextStyle TextStyle?
final
squeeze double
final
startPosition int?
final
unSelectTextStyle TextStyle?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _WheelChooserState
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