getDuration method

Future<int> getDuration (
  1. {String path}
)

get path audio duration

Implementation

Future<int> getDuration({String path}) async {
  final dynamic duration =
      await _channel.invokeMethod('getDuration', {'path': path});
  return duration ?? 0;
}