AdaptiveMenuDivider<T extends Object> class
final
A visual separator between groups of adaptive action entries.
A divider has no identity, payload, enabled state, or placement policy. It marks a boundary in declaration order. Nested dividers render in their containing action's menu; top-level dividers can render between primary actions and between overflow menu entries.
- Inheritance
-
- Object
- AdaptiveMenuEntry<
T> - AdaptiveMenuDivider
Constructors
- AdaptiveMenuDivider({bool showInPrimary = true, bool showInMenu = true})
-
Creates a menu divider.
const
-
Creates a declared divider that is not drawn in either target.
const
-
Creates a divider that is drawn only inside menus.
const
- AdaptiveMenuDivider.primaryOnly()
-
Creates a divider that is drawn only between primary actions.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showInMenu → bool
-
Whether the divider is drawn inside action and overflow menus.
final
- showInPrimary → bool
-
Whether a top-level divider is drawn between primary actions.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override