MethodChannelMetronome class

An implementation of MetronomePlatform that uses method channels.

Inheritance

Properties

eventTickChannel EventChannel
final
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
tickController StreamController<int>
finalinherited

Methods

destroy() Future<void>
override
getBPM() Future<int?>
override
getTimeSignature() Future<int?>
override
getVolume() Future<int?>
override
init(String mainPath, {String accentedPath = '', int bpm = 120, int volume = 50, bool enableTickCallback = false, int timeSignature = 4, int sampleRate = 44100}) Future<void>
override
isPlaying() Future<bool?>
override
loadFileBytes(String filePath) Future<Uint8List>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onListenTick(dynamic onEvent) Stream
inherited
pause() Future<void>
override
play() Future<void>
override
setAudioFile({String mainPath = '', String accentedPath = ''}) Future<void>
override
setBPM(int bpm) Future<void>
override
setTimeSignature(int timeSignature) Future<void>
override
setVolume(int volume) Future<void>
override
stop() Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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