LiveSlider class
Slider widget with its properties controlled by ValueCells.
The constructor takes the same arguments as the unnamed constructor of Slider, but as ValueCell's. This binds each property value to the ValueCell given in the constructor. If the cell value is changed, the value of the corresponding property to which it is bound is automatically updated to reflect the value of the cell.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CellWidget
- LiveSlider
Constructors
-
LiveSlider({Key? key, ValueCell<
bool> enabled = const ValueCell.value(true), required MutableCell<double> value, double? secondaryTrackValue, void onChangeStart(double)?, void onChangeEnd(double)?, double min = 0.0, double max = 1.0, int? divisions, String? label, Color? activeColor, Color? inactiveColor, Color? secondaryActiveColor, Color? thumbColor, WidgetStateProperty<Color?> ? overlayColor, MouseCursor? mouseCursor, String semanticFormatterCallback(double)?, FocusNode? focusNode, bool autofocus = false, SliderInteraction? allowedInteraction}) -
const
Properties
- activeColor → Color?
-
final
- allowedInteraction → SliderInteraction?
-
final
- autofocus → bool
-
final
- divisions → int?
-
final
-
enabled
→ ValueCell<
bool> -
Is the widget enabled for user input?
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inactiveColor → Color?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
final
- max → double
-
final
- min → double
-
final
- mouseCursor → MouseCursor?
-
final
- onChangeEnd → void Function(double)?
-
final
- onChangeStart → void Function(double)?
-
final
-
overlayColor
→ WidgetStateProperty<
Color?> ? -
final
- restorationId → String?
-
Restoration ID to use for restoring the cell state
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryActiveColor → Color?
-
final
- secondaryTrackValue → double?
-
final
- semanticFormatterCallback → String Function(double)?
-
final
- thumbColor → Color?
-
final
-
value
→ MutableCell<
double> -
final
Methods
-
bind(
{ValueCell< bool> ? enabled, MutableCell<double> ? value, double? secondaryTrackValue, void onChangeStart(double)?, void onChangeEnd(double)?, double? min, double? max, int? divisions, String? label, Color? activeColor, Color? inactiveColor, Color? secondaryActiveColor, Color? thumbColor, WidgetStateProperty<Color?> ? overlayColor, MouseCursor? mouseCursor, String semanticFormatterCallback(double)?, FocusNode? focusNode, bool? autofocus, SliderInteraction? allowedInteraction}) → LiveSlider -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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