@override Future<int> getDuration() async { final duration = await methodChannel.invokeMethod('getDuration'); return duration as int; }