FastSlider class
A FastFormField that contains either a Slider.adaptive or a CupertinoSlider.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FormField<
double> - FastFormField<
double> - FastSlider
- Annotations
Constructors
-
FastSlider({@Deprecated('Use cupertinoErrorBuilder instead.') FastSliderWidgetBuilder? errorBuilder, @Deprecated('Use cupertinoHelperBuilder instead.') FastSliderWidgetBuilder? helperBuilder, FastSliderWidgetBuilder cupertinoErrorBuilder = sliderErrorBuilder, FastSliderWidgetBuilder cupertinoHelperBuilder = sliderHelperBuilder, double? initialValue, bool? adaptive, AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction, FormFieldBuilder<
double> builder = sliderBuilder, Map<FastConditionHandler, FastConditionList> ? conditions, EdgeInsetsGeometry? contentPadding, InputDecoration? decoration, bool enabled = true, String? helperText, Key? key, String? labelText, required String name, ValueChanged<double?> ? onChanged, VoidCallback? onReset, FormFieldSetter<double> ? onSaved, String? restorationId, FormFieldValidator<double> ? validator, Color? activeColor, SliderInteraction? allowedInteraction, bool autofocus = false, FastSliderWidgetBuilder cupertinoPrefixBuilder = sliderPrefixBuilder, int? divisions, Color? inactiveColor, double max = 1.0, double min = 0.0, MouseCursor? mouseCursor, FastSliderLabelBuilder? labelBuilder, ValueChanged<double> ? onChangeEnd, ValueChanged<double> ? onChangeStart, MaterialStateProperty<Color?> ? overlayColor, FastSliderWidgetBuilder? prefixBuilder, SemanticFormatterCallback? semanticFormatterCallback, Color? secondaryActiveColor, double? secondaryTrackValue, bool showInputDecoration = true, FastSliderWidgetBuilder? suffixBuilder, Color? thumbColor}) -
const
Properties
- activeColor → Color?
-
final
- adaptive → bool?
-
null represents a non-adaptive form field widget
finalinherited
- allowedInteraction → SliderInteraction?
-
final
- autofocus → bool
-
final
- autovalidateMode → AutovalidateMode
-
Used to enable/disable this form field auto validation and update its
error text.
finalinherited
-
builder
→ FormFieldBuilder<
double> -
Function that returns the widget representing this form field. It is
passed the form field state as input, containing the current value and
validation state of this field.
finalinherited
-
conditions
→ Map<
FastConditionHandler, FastConditionList> ? -
finalinherited
- contentPadding → EdgeInsetsGeometry?
-
finalinherited
- cupertinoErrorBuilder → FastSliderWidgetBuilder
-
final
- cupertinoHelperBuilder → FastSliderWidgetBuilder
-
final
- cupertinoPrefixBuilder → FastSliderWidgetBuilder
-
final
- decoration → InputDecoration?
-
finalinherited
- divisions → int?
-
final
- enabled → bool
-
Whether the form is able to receive user input.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
finalinherited
- inactiveColor → Color?
-
final
- initialValue → double?
-
An optional value to initialize the form field to, or null otherwise.
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelBuilder → FastSliderLabelBuilder?
-
final
- labelText → String?
-
finalinherited
- max → double
-
final
- min → double
-
final
- mouseCursor → MouseCursor?
-
final
- name → String
-
finalinherited
-
onChanged
→ ValueChanged<
double?> ? -
finalinherited
-
onChangeEnd
→ ValueChanged<
double> ? -
final
-
onChangeStart
→ ValueChanged<
double> ? -
final
- onReset → VoidCallback?
-
finalinherited
-
onSaved
→ FormFieldSetter<
double> ? -
An optional method to call with the final value when the form is saved via
FormState.save.
finalinherited
-
overlayColor
→ MaterialStateProperty<
Color?> ? -
final
- prefixBuilder → FastSliderWidgetBuilder?
-
final
- restorationId → String?
-
Restoration ID to save and restore the state of the form field.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryActiveColor → Color?
-
final
- secondaryTrackValue → double?
-
final
- semanticFormatterCallback → SemanticFormatterCallback?
-
final
- showInputDecoration → bool
-
final
- suffixBuilder → FastSliderWidgetBuilder?
-
final
- thumbColor → Color?
-
final
-
validator
→ FormFieldValidator<
double> ? -
An optional method that validates an input. Returns an error string to
display if the input is invalid, or null otherwise.
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → FastSliderState -
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