callbackTable top-level property
Implementation
List<Function> callbackTable = [
allowInterop((FlutterSoundPlayerCallback cb, int position, int duration) {
cb.updateProgress(
duration: duration,
position: position,
);
}),
allowInterop((FlutterSoundPlayerCallback cb, int state) {
cb.updatePlaybackState(
state,
);
}),
allowInterop((FlutterSoundPlayerCallback cb, int ln) {
cb.needSomeFood(
ln,
);
}),
allowInterop((FlutterSoundPlayerCallback cb, int state) {
cb.audioPlayerFinished(
state,
);
}),
allowInterop(
(FlutterSoundPlayerCallback cb, int state, bool success, int duration) {
cb.startPlayerCompleted(
state,
success,
duration,
);
}),
allowInterop((FlutterSoundPlayerCallback cb, int state, bool success) {
cb.pausePlayerCompleted(state, success);
}),
allowInterop((FlutterSoundPlayerCallback cb, int state, bool success) {
cb.resumePlayerCompleted(state, success);
}),
allowInterop((FlutterSoundPlayerCallback cb, int state, bool success) {
cb.stopPlayerCompleted(state, success);
}),
allowInterop((FlutterSoundPlayerCallback cb, int state, bool success) {
cb.openPlayerCompleted(state, success);
}),
allowInterop((FlutterSoundPlayerCallback cb, int level, String msg) {
cb.log(Level.values[level], msg);
}),
];