DropdownController class

The controller of the dropdown menu.

Inheritance

Constructors

Properties

data Map<int, dynamic>
The data of the menu.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
index int
The index of the menu to display.
no setter
isShow bool
Whether the menu is displayed, True means display, False means hide.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Dispose of the controller.
override
hide({int? index, bool isSelect = false, String? title}) → void
Hide the menu. If the index is null or less than 0, clicking outside will only hide the menu.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
show(int index) → void
Show the menu at the specified index.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited