BookOptions class

The options for a Book instance.

This allows you to share configuration over multiple books.

Constructors

BookOptions(SoundPool soundPool, void message(String), {String searchSuccessSoundUrl = 'sounds/menus/searchsuccess.wav', String searchFailSoundUrl = 'sounds/menus/searchfail.wav', String moveSoundUrl = 'sounds/menus/move.wav', String activateSoundUrl = 'sounds/menus/activate.wav', String noCancelSoundUrl = 'sounds/menus/nocancel.wav'})

Properties

activateSound Sound
read / write
activateSoundUrl String
The url of the sound to play when using Book.activate.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
message → void Function(String)
The function to use for showing text.
final
moveSound Sound
The sound associated with moveSoundUrl.
read / write
moveSoundUrl String
The url of the sound to play when moving through the menu.
read / write
noCancelSound Sound
The sound associated with noCancelSoundUrl;
read / write
noCancelSoundUrl String
The url of the sound to play when using Book.cancel.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
searchFailSound Sound
The sound associated with searchFailSoundUrl.
read / write
searchFailSoundUrl String
The sound to play when a search matches nothing.
read / write
searchSuccessSound Sound
The sound associated with searchSuccessSoundUrl;
read / write
searchSuccessSoundUrl String
The URL sound to play when a search matches a result.
read / write
searchTimeout int
The timeout (in milliseconds) for searches.
read / write
soundPool SoundPool
An interface for playing sounds.
read / write

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited