BottomSheetMultiSelectField<T> class

Bottom sheet variant implementation of MultiSelectField.

Displays a trigger widget that opens a modal bottom sheet with the selection list when tapped.

Inheritance

Constructors

BottomSheetMultiSelectField({Key? key, required String label, List<Choice<T>> data()?, void onSelect(List<Choice<T>> choiceList, bool isFromDefaultData)?, void onChanged(List<Choice<T>> selectedItems)?, List<Choice<T>>? defaultData, Widget? menuContent, Widget? menuHeader, Widget? menuFooter, BottomSheetStyle? bottomSheetStyle, VoidCallback? onOpened, VoidCallback? onClosed, bool enabled = true, Widget? child, bool singleSelection = false, bool selectAllOption = false, bool useTextFilter = false, bool closeOnSelect = false, TextStyle? titleMenuStyle, TextStyle? itemMenuStyle, EdgeInsetsGeometry? titleMenuPadding, Widget searchBuilder(void onSearch(String query))?, String? searchHint, TextStyle? searchHintStyle, double? searchMinHeight})
const

Properties

bottomSheetStyle → BottomSheetStyle?
final
child → Widget?
final
closeOnSelect → bool
final
data → List<Choice<T>> Function()?
final
defaultData → List<Choice<T>>?
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
itemMenuStyle → TextStyle?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
final
final
final
final
onChanged → void Function(List<Choice<T>> selectedItems)?
final
onClosed → VoidCallback?
final
onOpened → VoidCallback?
final
onSelect → void Function(List<Choice<T>> choiceList, bool isFromDefaultData)?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchBuilder → Widget Function(void onSearch(String query))?
Custom search widget builder. Receives onSearch callback to filter items. When null and useTextFilter is true, uses a default TextField.
final
searchHint → String?
Hint text for the default search field. Only used when searchBuilder is null.
final
searchHintStyle → TextStyle?
Style for the default search hint text. Only used when searchBuilder is null.
final
searchMinHeight → double?
Minimum height of the bottom sheet when useTextFilter is true. Prevents the sheet from collapsing too much when few results match. Defaults to 200.
final
selectAllOption → bool
final
singleSelection → bool
final
titleMenuPadding → EdgeInsetsGeometry?
final
titleMenuStyle → TextStyle?
final
useTextFilter → bool
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<BottomSheetMultiSelectField<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.
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, 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