MiraiDropDownMenu<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MiraiDropDownMenu
Constructors
-
MiraiDropDownMenu({Key? key, required Widget child, bool isKeyboardOpen = false, Widget? other, Decoration? decoration, required MiraiDropdownBuilder<
T> itemWidgetBuilder, MiraiHighLightDropdownBuilder<T> ? itemHighLightBuilder, required List<T> children, ValueNotifier<T> ? valueNotifier, MiraiPopupMenuMode mode = MiraiPopupMenuMode.dropDownMenu, MiraiShowMode showMode = MiraiShowMode.bottom, ValueChanged<T> ? onChanged, double? maxHeight, double? radius, bool enable = true, bool showSeparator = true, bool listThumbVisibility = true, bool showOtherAndItsTextField = false, ValueChanged<String> ? onOtherChanged, MiraiExit exit = MiraiExit.fromAll, ValueChanged<bool> ? isExpanded, double space = 3, String? emptyListMessage, bool showSearchTextField = false, InputDecoration? searchDecoration, FormFieldValidator<String> ? searchValidator, TextStyle? searchTextFormFieldStyle, EdgeInsetsGeometry? itemPadding, Color? itemOverlayColor, Color? itemBackgroundColor, Color? selectedItemBackgroundColor, bool showSelectedItemBackgroundColor = true, EdgeInsetsGeometry? itemMargin, double? itemHeight, Color? separatorColor, TextEditingController? otherController, InputDecoration? otherDecoration, FormFieldValidator<String> ? otherValidator, ValueChanged<String> ? otherOnFieldSubmitted, double? otherHeight, EdgeInsetsGeometry? otherMargin, Duration? animationDuration, Widget? searchNoDataWidget})
Properties
- animationDuration → Duration?
-
final
- child → Widget
-
Child widget that has dropdown menu
final
-
children
→ List<
T> -
children, is the list that we display in the dropdown
final
- decoration → Decoration?
-
Drop Down Decoration
final
- emptyListMessage → String?
-
final
- enable → bool
-
final
- exit → MiraiExit
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isExpanded
→ ValueChanged<
bool> ? -
final
- isKeyboardOpen → bool
-
final
- itemBackgroundColor → Color?
-
final
- itemHeight → double?
-
final
-
itemHighLightBuilder
→ MiraiHighLightDropdownBuilder<
T> ? -
final
- itemMargin → EdgeInsetsGeometry?
-
final
- itemOverlayColor → Color?
-
final
- itemPadding → EdgeInsetsGeometry?
-
final
-
itemWidgetBuilder
→ MiraiDropdownBuilder<
T> -
itemWidget, is a widget that we display as an item in the list menu
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listThumbVisibility → bool
-
final
- maxHeight → double?
-
The max height of the dropdown
final
- mode → MiraiPopupMenuMode
-
mode, can have two values: dropDownMenu or popupMenu
final
-
onChanged
→ ValueChanged<
T> ? -
final
-
onOtherChanged
→ ValueChanged<
String> ? -
final
- other → Widget?
-
final
- otherController → TextEditingController?
-
Other
final
- otherDecoration → InputDecoration?
-
final
- otherHeight → double?
-
final
- otherMargin → EdgeInsetsGeometry?
-
final
-
otherOnFieldSubmitted
→ ValueChanged<
String> ? -
final
-
otherValidator
→ FormFieldValidator<
String> ? -
final
- radius → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchDecoration → InputDecoration?
-
final
- searchNoDataWidget → Widget?
-
final
- searchTextFormFieldStyle → TextStyle?
-
final
-
searchValidator
→ FormFieldValidator<
String> ? -
final
- selectedItemBackgroundColor → Color?
-
final
- separatorColor → Color?
-
final
- showMode → MiraiShowMode
-
final
- showOtherAndItsTextField → bool
-
final
- showSearchTextField → bool
-
final
- showSelectedItemBackgroundColor → bool
-
final
- showSeparator → bool
-
final
- space → double
-
Space between dropdown and child
final
-
valueNotifier
→ ValueNotifier<
T> ? -
User this valueNotifier to detect which item is Selected...
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → MiraiDropDownMenuState< 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}) → 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