FSelectItem<T> class
A selectable item in a FSelect that can optionally be nested in a FSelectSection.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FSelectItem
- Mixed-in types
Constructors
- FSelectItem.new(String text, T value, {bool? enabled, Key? key})
- Creates a FSelectItem.
- FSelectItem.from({required T value, required Widget title, FSelectItemStyle style(FSelectItemStyle)?, bool? enabled, Widget? prefix, Widget? subtitle, Widget? suffixBuilder(BuildContext, bool) = _defaultSuffixBuilder, Key? key})
- Creates a FSelectItem with a custom child widget.
Properties
- enabled → bool?
-
True if the item is enabled. Disabled items cannot be selected, and is skipped during traversal.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- prefix → Widget?
-
A prefix.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → FSelectItemStyle Function(FSelectItemStyle)?
-
The style. Defaults to the FSelectItemStyle inherited from the parent FSelectSection or FSelect.
final
- subtitle → Widget?
-
The subtitle.
final
- suffixBuilder → Widget? Function(BuildContext, bool)
-
The icon displayed when the item is selected. Defaults to a check icon.
final
- title → Widget
-
The child.
final
- value → T
-
The value.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FSelectItem< 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.
override
-
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, int wrapWidth = 65}) → 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