@override Future<int> createTexture(int key) async { return await methodChannel .invokeMethod<int>('createTexture', {"key": key}) ?? -1; }