Sound class final

A sound.

Properties

duration Duration
no setter
hashCode int
The hash code for this object.
no setterinherited
isLooped bool
no setter
loopDelay Duration
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volume double
a double greater than 0 (values greater than 1 may behave differently from platform to platform)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Does not reset a sound position.
play() → void
Starts a sound. Stopped and played again if it is already started.
playLooped({Duration delay = Duration.zero}) → void
Starts sound looping.
stop() → void
Resets a sound position.
toString() String
A string representation of this object.
inherited
unload() → void

Operators

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