SelectorWheel<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SelectorWheel
Constructors
-
SelectorWheel({Key? key, int? selectedItemIndex, double width = 80.0, int? childCount, double childHeight = 36.0, required SelectorWheelValue<
T> convertIndexToValue(int index), required void onValueChanged(SelectorWheelValue<T> value), bool enableFadeOut = true, double fadeOutHeightFraction = 0.36, bool enableHapticFeedback = true, BorderRadiusGeometry? highlightBorderRadius, double? highlightHeight, double? highlightWidth, double? perspective, double? diameterRatio}) -
const
Properties
- childCount → int?
-
The number of children in the wheel.
final
- childHeight → double
-
The height of the wheel's children.
final
-
convertIndexToValue
→ SelectorWheelValue<
T> Function(int index) -
Determines the logic of how an item with an index of "i" is
appearing on the wheel.
final
- diameterRatio → double?
-
final
- enableFadeOut → bool
-
If true, the wheel will fade out at the top and bottom.
final
- enableHapticFeedback → bool
-
If true, the wheel will vibrate lightly when the user scrolls.
final
- fadeOutHeightFraction → double
-
The height percentage of the fade out at the top and bottom
of the wheel. Must be a value between 0.0 and 1.0.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightBorderRadius → BorderRadiusGeometry?
-
Selector wheel's highlighted area border radius.
final
- highlightHeight → double?
-
Selector wheel's highlighted area height.
final
- highlightWidth → double?
-
Selector wheel's highlighted area width.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onValueChanged
→ void Function(SelectorWheelValue<
T> value) -
onValueChanged is called when the user scrolls the wheel and
the wheel stops on a new value.
final
- perspective → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedItemIndex → int?
-
Initially selected value of the wheel.
final
- width → double
-
The width of the wheel.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SelectorWheel< T> > -
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