createTexture method
Registers a native texture and returns its Flutter texture identifier.
Implementation
@override
Future<int> createTexture() async {
final id = await methodChannel.invokeMethod<int>('createTexture');
if (id == null) throw StateError('Native texture creation returned null');
return id;
}