CustomMenu class
A custom menu.
- Annotations
-
- @JsonSerializable.new()
Constructors
-
CustomMenu({required String id, required String title, Sound? music, List<
CustomMenuItem> ? items, bool cancellable = true, double? fadeTime, CallCommand? cancelCommand}) - Create an instance.
-
CustomMenu.fromJson(Map<
String, dynamic> json) -
Create an instance from a JSON object.
factory
Properties
- cancelCommand ↔ CallCommand?
-
The command to call when this menu is cancelled.
getter/setter pair
- cancellable ↔ bool
-
Whether or not this menu can be cancelled.
getter/setter pair
- fadeTime ↔ double?
-
The fade time for this menu.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The ID of this menu.
final
-
items
→ List<
CustomMenuItem> -
The items in this menu.
final
- music ↔ Sound?
-
The music to play when this menu is shown.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title ↔ String
-
The title of this menu.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert an instance to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited