FastCheckbox class
A FastFormField that contains either a CheckboxListTile.adaptive or a CupertinoCheckbox.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FormField<
bool> - FastFormField<
bool> - FastCheckbox
- Annotations
Constructors
-
FastCheckbox({@Deprecated('Use cupertinoErrorBuilder instead.') FastCheckboxWidgetBuilder? errorBuilder, @Deprecated('Use cupertinoHelperBuilder instead.') FastCheckboxWidgetBuilder? helperBuilder, FastCheckboxWidgetBuilder cupertinoErrorBuilder = checkboxErrorBuilder, FastCheckboxWidgetBuilder cupertinoHelperBuilder = checkboxHelperBuilder, bool? adaptive, AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction, FormFieldBuilder<
bool> builder = checkboxBuilder, Map<FastConditionHandler, FastConditionList> ? conditions, EdgeInsetsGeometry? contentPadding, InputDecoration? decoration, bool enabled = true, String? helperText, bool? initialValue = false, Key? key, String? labelText, required String name, ValueChanged<bool?> ? onChanged, VoidCallback? onReset, FormFieldSetter<bool> ? onSaved, String? restorationId, FormFieldValidator<bool> ? validator, Color? activeColor, bool autofocus = false, String? checkboxSemanticLabel, OutlinedBorder? checkboxShape, Color? checkColor, ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform, FastCheckboxWidgetBuilder cupertinoPrefixBuilder = checkboxPrefixBuilder, bool? dense, bool? enableFeedback, MaterialStateProperty<Color?> ? fillColor, Color? focusColor, FocusNode? focusNode, Color? hoverColor, Color? inactiveColor, bool isError = false, bool isThreeLine = false, MaterialTapTargetSize? materialTapTargetSize, MouseCursor? mouseCursor, void onFocusChange(bool)?, MaterialStateProperty<Color?> ? overlayColor, Widget? secondary, Color? selectedTileColor, OutlinedBorder? shape, ShapeBorder? shapeBorder, BorderSide? side, bool showInputDecoration = true, double? splashRadius, Widget? subtitle, Color? tileColor, String? titleText, FastCheckboxWidgetBuilder titleBuilder = checkboxTitleBuilder, bool tristate = false, VisualDensity? visualDensity}) -
const
Properties
- activeColor → Color?
-
final
- adaptive → bool?
-
null represents a non-adaptive form field widget
finalinherited
- autofocus → bool
-
final
- autovalidateMode → AutovalidateMode
-
Used to enable/disable this form field auto validation and update its
error text.
finalinherited
-
builder
→ FormFieldBuilder<
bool> -
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
- checkboxSemanticLabel → String?
-
final
- checkboxShape → OutlinedBorder?
-
final
- checkColor → Color?
-
final
-
conditions
→ Map<
FastConditionHandler, FastConditionList> ? -
finalinherited
- contentPadding → EdgeInsetsGeometry?
-
finalinherited
- controlAffinity → ListTileControlAffinity
-
final
- cupertinoErrorBuilder → FastCheckboxWidgetBuilder
-
final
- cupertinoHelperBuilder → FastCheckboxWidgetBuilder
-
final
- cupertinoPrefixBuilder → FastCheckboxWidgetBuilder
-
final
- decoration → InputDecoration?
-
finalinherited
- dense → bool?
-
final
- enabled → bool
-
Whether the form is able to receive user input.
finalinherited
- enableFeedback → bool?
-
final
-
fillColor
→ MaterialStateProperty<
Color?> ? -
final
- focusColor → Color?
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
finalinherited
- hoverColor → Color?
-
final
- inactiveColor → Color?
-
final
- initialValue → bool?
-
An optional value to initialize the form field to, or null otherwise.
finalinherited
- isError → bool
-
final
- isThreeLine → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelText → String?
-
finalinherited
- materialTapTargetSize → MaterialTapTargetSize?
-
final
- mouseCursor → MouseCursor?
-
final
- name → String
-
finalinherited
-
onChanged
→ ValueChanged<
bool?> ? -
finalinherited
- onFocusChange → (void Function(bool)?)
-
final
- onReset → VoidCallback?
-
finalinherited
-
onSaved
→ FormFieldSetter<
bool> ? -
An optional method to call with the final value when the form is saved via
FormState.save.
finalinherited
-
overlayColor
→ MaterialStateProperty<
Color?> ? -
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
- secondary → Widget?
-
final
- selectedTileColor → Color?
-
final
- shape → OutlinedBorder?
-
final
- shapeBorder → ShapeBorder?
-
final
- showInputDecoration → bool
-
final
- side → BorderSide?
-
final
- splashRadius → double?
-
final
- subtitle → Widget?
-
final
- tileColor → Color?
-
final
- titleBuilder → FastCheckboxWidgetBuilder
-
final
- titleText → String?
-
final
- tristate → bool
-
final
-
validator
→ FormFieldValidator<
bool> ? -
An optional method that validates an input. Returns an error string to
display if the input is invalid, or null otherwise.
finalinherited
- visualDensity → VisualDensity?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → FastCheckboxState -
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