AnalogRadio class abstract
Emulates analog radio
Constructors
- AnalogRadio({AudioNode setCustomNode(AudioContext context)?})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalSignalStrength ↔ double
-
Internal signal strength. From 0 to 1
getter/setter pair
- playing → bool
-
The radio is playing
no setter
- running → bool
-
The radio is on
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signalStrength ↔ double
-
Current signal strength. From 0 to 1
getter/setter pair
-
state
→ Stream<
AudioProcessorState> -
Radio state
no setter
- url → String
-
Stream url
no setter
- volume ↔ double
-
The current volume. From 0 to 1
getter/setter pair
Methods
-
dispose(
) → void - Dispose
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tune(
String url, double signalStrength) → void -
Adjusts the radio to the
url
stream with the signal strengthsignalStrength
.signalStrength
must be from 0 to 1 -
tuning(
) → void - Turns on the frequency change sound
-
turnOff(
) → void - Turns off the radio
-
turnOn(
) → void - Turns on the radio
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited