@override Future<int> getDuration(int textureId) async { var value = await methodChannel .invokeMethod<int>('getDuration', {"textureId": textureId}); return value ?? -1; }