MetronomePlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- MetronomePlatform
- Implementers
Constructors
- MetronomePlatform.new()
- Constructs a MetronomePlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tickController
→ StreamController<
int> -
final
Methods
-
destroy(
) → Future< void> -
getBPM(
) → Future< int?> -
getTimeSignature(
) → Future< int?> -
getVolume(
) → Future< int?> -
init(
String mainPath, {String accentedPath = '', int bpm = 120, int volume = 50, bool enableTickCallback = false, int timeSignature = 4, int sampleRate = 44100}) → Future< void> -
isPlaying(
) → Future< bool?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onListenTick(
dynamic onEvent) → Stream -
pause(
) → Future< void> -
play(
) → Future< void> -
setAudioFile(
{String mainPath = '', String accentedPath = ''}) → Future< void> -
setBPM(
int bpm) → Future< void> -
setTimeSignature(
int timeSignature) → Future< void> -
setVolume(
int volume) → Future< void> -
stop(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MetronomePlatform
-
The default instance of MetronomePlatform to use.
getter/setter pair