durationWithOptions method
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;
}