getDuration method

  1. @override
Future<Long> getDuration(
  1. int id
)
override

Implementation

@override
Future<Long> getDuration(int id) async {
  return await methodChannel.invokeMethod<Long>(ImpulsePlayerPluginConstants.MethodGetDuration, {
    ImpulsePlayerPluginConstants.ParameterId: id,
  }) ?? const Long();
}