SelectableItemBottomSheet<T> class

A bottom sheet widget that allows selection of items from a list.

This widget can be used for both single and multiple item selection.

Inheritance

Constructors

SelectableItemBottomSheet({Key? key, required String title, required List<SelectableItem<T>> selectableItems, dynamic onItemSelected(SelectableItem<T>)?, dynamic onItemsSelected(List<SelectableItem<T>>)?, SelectableItem<T>? selectedItem, List<SelectableItem<T>>? initialSelectedItems, bool isMultipleSelection = false, bool canSearchItems = false, Widget? child})
const

Properties

canSearchItems bool
Flag to enable search functionality.
final
child Widget?
to add a custom view
final
hashCode int
The hash code for this object.
no setterinherited
initialSelectedItems List<SelectableItem<T>>?
Initially selected items for multiple selection mode.
final
isMultipleSelection bool
Flag to enable multiple selection mode.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onItemSelected → dynamic Function(SelectableItem<T>)?
Callback function for single item selection.
final
onItemsSelected → dynamic Function(List<SelectableItem<T>>)?
Callback function for multiple item selection.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectableItems List<SelectableItem<T>>
List of selectable items.
final
selectedItem SelectableItem<T>?
Initially selected item for single selection mode.
final
title String
The title of the bottom sheet.
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.
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