getDuration method

Future<double> getDuration()

Returns the total duration in seconds.

Implementation

Future<double> getDuration() async {
  final v = await _invoke<double>('getDuration');
  return v ?? 0.0;
}