MaterialDropdownBase class
Base class for Material Dropdown components.
Expected Properties:
visible:bool
-- Whether the dropdown is visible.enforceSpaceConstraints
-- Avoid rendering drop down offscreenauto-dismiss: bool
-- Whether the popup should close when the document pressed.
Expected Events:
onVisible:bool
-- Stream for visibility changes.
Bindings:
DropdownHandle
-- Provides a common interface to open/close dropodowns.DeferredContentAware
-- Provides a means to lazily create/attach content.
- Implemented types
- Implementers
Constructors
Properties
- autoDismiss ↔ bool?
-
Whether the popup should close when the document pressed.
getter/setter pairoverride
- constrainToViewport ↔ bool
-
Whether to clamp the dropdown position so that it never goes offscreen.
getter/setter pair
-
contentVisible
→ Stream<
bool> -
Component publishes to this stream to control the visibility of contents.
no setteroverride
- enforceSpaceConstraints ↔ bool
-
Avoid rendering drop down offscreen.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isVisible → bool
-
Whether the popup is currently visible.
no setteroverride
-
onVisibleChanged
→ Stream<
bool> -
An event stream that fires when the popup's visibility changes.
no setteroverride
- popupMatchInputWidth ↔ bool
-
Whether or not the popup width is at least as wide as the select width.
getter/setter pair
-
preferredPositions
↔ List<
RelativePosition> -
Preferred positions for alignment when enforceSpaceConstraints is true
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slide ↔ String?
-
Direction of popup scaling.
getter/setter pair
- visible ↔ bool
-
Whether the dropdown is visible.
getter/setter pair
-
visibleStream
→ Stream<
bool> -
Fired when the dropdown's visibility changes.
no setter
Methods
-
close(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onVisible(
bool vis) → void -
open(
) → void -
override
-
toggle(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited