SelectFieldBase<T> class abstract

Inheritance
Implementers

Constructors

SelectFieldBase({Key? key, String? label, TextStyle? labelStyle, bool enabled = true, String? unselectedString, Duration duration = const Duration(milliseconds: 300), ScrollController? scrollController, required List<SelectFieldOption<T>> options, bool closeOnSelect = true, String? errorText, SelectTrailingBuilder? trailingBuilder, BorderRadius? borderRadius, bool? filled, bool enableSearch = false, Color? fillColor, bool overrideColor = false, List<InputFeedbackText>? feedback, double maxWidth = 343, TextStyle? titleStyle, TextStyle? optionTileStyle})
const

Properties

borderRadius BorderRadius?
Radius of the field
final
closeOnSelect bool
If set to true this will auto-close the field when a user select an option of the dropdown
final
duration Duration
Modify the duration of the collapsing/uncollapsing animation
final
enabled bool
If false, all gesture detection will be disabled, this also affects color and transparency of the field
final
enableSearch bool
final
errorText String?
If you would like to show an error message this will render your message and change the background color of the field
final
feedback List<InputFeedbackText>?
If you would like to provide feedback for this field you can do so
final
fillColor Color?
The Color to be used instead of the default one which is inherited from an InputTheme
final
filled bool?
If you would like to render this field with background color
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
The label of this field
final
labelStyle TextStyle?
Define a custom style to be used in the label of the field
final
maxWidth double
Define max width constraints for this field by default is 343
final
options List<SelectFieldOption<T>>
Provide the options to be used
final
optionTileStyle TextStyle?
Provide a custom text style to be used on the option list tiles
final
overrideColor bool
By default, specifying a fillColor will only apply on default state of th field, but will not override when this field change to an error state or disabled this change that behavior
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
Wether if you would like to implement a custom controller to be used on the option list-view
final
titleStyle TextStyle?
Provide a custom text style to be used on the field title
final
trailingBuilder SelectTrailingBuilder?
This provides a useful builder to be used instead of the default one, useful if you would like to customize the style of the icon
final
unselectedString String?
This text is used when no option have been selected
final

Methods

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