FormeCupertinoSegmentedControl<T extends Object> class

Inheritance

Constructors

FormeCupertinoSegmentedControl({required String name, required Map<T, Widget> children, Color? unselectedColor, Color? selectedColor, Color? borderColor, Color? pressedColor, EdgeInsetsGeometry? padding, Color? disableUnselectedColor, Color? disableSelectedColor, Color? disableBorderColor, T? initialValue, bool readOnly = false, Key? key, int? order, bool quietlyValidate = false, Duration? asyncValidatorDebounce, AutovalidateMode? autovalidateMode, FormeValueChanged<T?>? onValueChanged, FormeFocusChanged<T?>? onFocusChanged, FormeFieldValidationChanged<T?>? onValidationChanged, FormeFieldInitialed<T?>? onInitialed, FormeFieldSetter<T?>? onSaved, FormeValidator<T?>? validator, FormeAsyncValidator<T?>? asyncValidator, FormeFieldDecorator<T?>? decorator, bool requestFocusOnUserInteraction = true, bool registrable = true, bool enabled = true})

Properties

asyncValidator → FormeAsyncValidator<T?>?
used to perform an async validate
finalinherited
asyncValidatorDebounce Duration?
finalinherited
autovalidateMode AutovalidateMode
finalinherited
builder → FormeFieldBuilder<T?>
finalinherited
children Map<T, Widget>
final
decorator → FormeFieldDecorator<T?>?
used to decorate a field
finalinherited
enabled bool
whether field is enabled,
finalinherited
fieldType Type
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
initialValue → T?
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
name String
finalinherited
onEnableChanged → (void Function(FormeFieldController<T?> field, bool enable)?)
finalinherited
onFocusChanged → FormeFocusChanged<T?>?
finalinherited
onInitialed → FormeFieldInitialed<T?>?
called after FormeController or FormeFieldController initialed
finalinherited
onReadonlyChanged → (void Function(FormeFieldController<T?> field, bool readOnly)?)
finalinherited
onSaved → FormeFieldSetter<T?>?
finalinherited
onValidationChanged → FormeFieldValidationChanged<T?>?
used to listen field's validation changes
finalinherited
onValueChanged → FormeValueChanged<T?>?
finalinherited
order int?
used to support Forme.autovalidateByOrder
finalinherited
quietlyValidate bool
quietlyValidate
finalinherited
readOnly bool
finalinherited
registrable bool
whether this field can be registered to Forme
finalinherited
requestFocusOnUserInteraction bool
whether request focus when field value changed
finalinherited
runtimeType → FormeFieldType
A representation of the runtime type of the object.
no setterinherited
validator → FormeValidator<T?>?
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FormeCupertinoSegmentedControlState<T>
Creates the mutable state for this widget at a given location in the tree.
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