CustomSound class

A sound from any asset store.

Inheritance
Annotations
  • @JsonSerializable.new()

Constructors

CustomSound({required CustomSoundAssetStore assetStore, required String id, double gain = 0.7})
Create an instance.
CustomSound.fromJson(Map<String, dynamic> json)
Create an instance from a JSON object.
factory

Properties

assetStore ↔ CustomSoundAssetStore
The asset store where id resides.
getter/setter pair
audioBusId ↔ String?
The ID of the AudioBus to play through.
getter/setter pair
gain ↔ double
The gain of this sound.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
The ID of the sound to play.
getter/setter pairinherited
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
toJson() → Map<String, dynamic>
Convert an instance to JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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