MenuState enum

States the menu goes through during opening and closing.

These States are managed by SelectionMenu.

When the menu is triggered, the menu enters MenuState.OpeningStart. Immediately after that it enters MenuState.OpeningEnd. After the animation completes AnimationComponent notifies SelectionMenu using a callback, and menu enters the state of MenuState.Opened.

The closing process is similar.

See related example here.

Menu State Change gif

Inheritance
  • Object
  • Enum
  • MenuState

Values

OpeningStart → const MenuState
OpeningEnd → const MenuState
Opened → const MenuState
ClosingStart → const MenuState
ClosingEnd → const MenuState
Closed → const MenuState

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<MenuState>
A constant List of the values in this enum, in order of their declaration.