enableStatisticsCallback method Null safety

void enableStatisticsCallback(
  1. StatisticsCallback newCallback
)

Sets a callback to redirect FFmpeg statistics. newCallback is the new statistics callback function, use null to disable a previously defined callback.

Implementation

void enableStatisticsCallback(StatisticsCallback newCallback) {
  try {
    statisticsCallback = newCallback;
  } on PlatformException catch (e) {
    print('Plugin enableStatisticsCallback error: ${e.message}');
  }
}