MenuState<T> class
Constructors
-
MenuState({required MenuItemBox2D parentBox, required Map<
int, MenuItemBox2D> childrenBox, MenuBoardData<T> ? initialData})
Properties
-
children
→ List<
MenuItem< T> > -
no setter
-
childrenBox
→ Map<
int, MenuItemBox2D> -
final
- hasData → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialData
→ MenuBoardData<
T> ? -
if you are waiting for fetching data from BE
initialData must be
nullthen animation will be start automatically when you have data, please call updateMenuBoardDatafinal -
parent
→ MenuItem<
T> ? -
no setter
- parentBox → MenuItemBox2D
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
disableChildren(
[List< int> indexes = const []]) → void -
if
indexesis empty -> apply for all children -
disableParent(
) → void -
enableChildren(
[List< int> indexes = const []]) → void -
if
indexesis empty -> apply for all children -
enableParent(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateItemPositions(
Vector2 parentPosition, List< Vector2> childrenPositions, [double? parentRadius, double? childRadius]) → MenuState<T> -
updateMenuBoardData(
MenuBoardData< T> data) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited