durationWithOptions method

Future<int> durationWithOptions({
  1. bool withSubtype = false,
})

Obtain the duration with the given options.

withSubtype only works on iOS/macOS.

Implementation

Future<int> durationWithOptions({bool withSubtype = false}) async {
  if (withSubtype) {
    return plugin.getDurationWithOptions(id, subtype: subtype);
  }
  return duration;
}