MultiSelectDropDown class

Inheritance

Constructors

MultiSelectDropDown({Key? key, required OnOptionSelected? onOptionSelected, required List<ValueItem> options, Color? selectedOptionTextColor, Widget? optionSeperator, ChipConfig chipConfig = const ChipConfig(), SelectionType selectionType = SelectionType.multi, String hint = 'Select', Color? hintColor = Colors.grey, double? hintFontSize = 14.0, List<ValueItem> selectedOptions = const [], List<ValueItem> disabledOptions = const [], bool alwaysShowOptionIcon = false, TextStyle? optionTextStyle, Icon? selectedOptionIcon = const Icon(Icons.check), Color? selectedOptionBackgroundColor, Color? optionsBackgroundColor, Color? backgroundColor = Colors.white, double dropdownHeight = 200, bool showChipInSingleSelectMode = false, IconData? suffixIcon = Icons.arrow_drop_down, Widget selectedItemBuilder(BuildContext, ValueItem)?, Widget? optionSeparator, Decoration? inputDecoration, TextStyle? hintStyle, EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 8), Color? borderColor = Colors.grey, double? borderWidth = 0.4, double? borderRadius = 12.0, BorderRadiusGeometry? radiusGeometry, bool showClearIcon = true})
MultiSelectDropDown is a widget that allows the user to select multiple options from a list of options. It is a dropdown that allows the user to select multiple options.
const
MultiSelectDropDown.network({Key? key, required NetworkConfig? networkConfig, required Future<List<ValueItem>> responseParser(dynamic)?, Widget responseErrorBuilder(BuildContext, dynamic)?, required OnOptionSelected? onOptionSelected, Color? selectedOptionTextColor, Widget? optionSeperator, ChipConfig chipConfig = const ChipConfig(), SelectionType selectionType = SelectionType.multi, String hint = 'Select', Color? hintColor = Colors.grey, double? hintFontSize = 14.0, List<ValueItem> selectedOptions = const [], List<ValueItem> disabledOptions = const [], bool alwaysShowOptionIcon = false, TextStyle? optionTextStyle, Icon? selectedOptionIcon = const Icon(Icons.check), Color? selectedOptionBackgroundColor, Color? optionsBackgroundColor, Color? backgroundColor = Colors.white, double dropdownHeight = 200, bool showChipInSingleSelectMode = false, IconData? suffixIcon = Icons.arrow_drop_down, Widget selectedItemBuilder(BuildContext, ValueItem)?, Widget? optionSeparator, Decoration? inputDecoration, TextStyle? hintStyle, EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 8), Color? borderColor = Colors.grey, double? borderWidth = 0.4, double? borderRadius = 12.0, BorderRadiusGeometry? radiusGeometry, bool showClearIcon = true})
Constructor for MultiSelectDropDown that fetches the options from a network call. networkConfig is the configuration for the network call. responseParser is the parser that is used to parse the response from the network call. responseErrorBuilder is the builder that is used to build the error widget when the network call fails.
const

Properties

alwaysShowOptionIcon bool
final
backgroundColor Color?
final
borderColor Color?
final
borderRadius double?
final
borderWidth double?
final
chipConfig ChipConfig
final
disabledOptions List<ValueItem>
final
final
hashCode int
The hash code for this object.
no setterinherited
hint String
final
hintColor Color?
final
hintFontSize double?
final
hintStyle TextStyle?
final
inputDecoration Decoration?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
networkConfig NetworkConfig?
final
onOptionSelected OnOptionSelected?
final
options List<ValueItem>
final
optionsBackgroundColor Color?
final
optionSeparator Widget?
final
optionSeperator Widget?
final
optionTextStyle TextStyle?
final
padding EdgeInsets?
final
radiusGeometry BorderRadiusGeometry?
final
responseErrorBuilder → (Widget Function(BuildContext, dynamic)?)
final
responseParser → (Future<List<ValueItem>> Function(dynamic)?)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedItemBuilder → (Widget Function(BuildContext, ValueItem)?)
final
selectedOptionBackgroundColor Color?
final
selectedOptionIcon Icon?
final
selectedOptions List<ValueItem>
final
selectedOptionTextColor Color?
final
selectionType SelectionType
final
showChipInSingleSelectMode bool
final
showClearIcon bool
final
suffixIcon IconData?
final

Methods

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