AudioGameMenuItem class

A menu item in an AudioGameMenu.

Constructors

AudioGameMenuItem({required String title, required ContextCallback onActivate, Sound? earcon})
Create an instance.
const

Properties

earcon Sound?
The path of an asset reference that will play when this menu item is selected. This sound will play in addition to the usual menu select sound.
final
hashCode int
The hash code for this object.
no setterinherited
onActivate → ContextCallback
The function to call when this menu item is activated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The title of this menu item.
final

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