callbackTable top-level property

List<JSExportedDartFunction> callbackTable
getter/setter pair

Implementation

List<JSExportedDartFunction> callbackTable = [
  (JSBoxedDartObject cb, int duration, double dbPeakLevel) {
    (cb.toDart as FlutterSoundRecorderCallback).updateRecorderProgress(
      duration: duration,
      dbPeakLevel: dbPeakLevel,
    );
  }.toJS,
  /*
  (JSBoxedDartObject cb, Uint8List? data) {
    (cb.toDart as FlutterSoundRecorderCallback).recordingData(data: data);
  }.toJS,
   */
  (JSBoxedDartObject cb, int state, bool success) {
    (cb.toDart as FlutterSoundRecorderCallback).startRecorderCompleted(
      state,
      success,
    );
  }.toJS,
  (JSBoxedDartObject cb, int state, bool success) {
    (cb.toDart as FlutterSoundRecorderCallback).pauseRecorderCompleted(
      state,
      success,
    );
  }.toJS,
  (JSBoxedDartObject cb, int state, bool success) {
    (cb.toDart as FlutterSoundRecorderCallback).resumeRecorderCompleted(
      state,
      success,
    );
  }.toJS,
  (JSBoxedDartObject cb, int state, bool success, String url) {
    (cb.toDart as FlutterSoundRecorderCallback).stopRecorderCompleted(
      state,
      success,
      url,
    );
  }.toJS,
  (JSBoxedDartObject cb, int state, bool success) {
    (cb.toDart as FlutterSoundRecorderCallback).openRecorderCompleted(
      state,
      success,
    );
  }.toJS,
  (JSBoxedDartObject cb, int level, String msg) {
    (cb.toDart as FlutterSoundRecorderCallback).log(Level.values[level], msg);
  }.toJS,
];