MethodChannelSonicFrequencies class
An implementation of SonicFrequenciesPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- SonicFrequenciesPlatform
- MethodChannelSonicFrequencies
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateSweep(
{double startFrequency = 200.0, double endFrequency = 2000.0, int duration = 3000, double volume = 1.0}) → Future< bool> -
Generates a frequency sweep from startFrequency to endFrequency.
override
-
generateTone(
{double frequency = 440.0, double volume = 1.0, int? duration}) → Future< bool> -
Generates a tone with the specified frequency, volume, and duration.
override
-
getPlatformVersion(
) → Future< String?> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stopTone(
) → Future< bool> -
Stops any currently playing tone or sweep.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited