allocate static method
Implementation
static Future<NativeTexture> allocate() async {
final int handle = CameraChannel.nextHandle++;
final int textureId = (await CameraChannel.channel.invokeMethod<int>(
'$NativeTexture#allocate',
<String, dynamic>{'textureHandle': handle},
))!;
return NativeTexture._(handle: handle, textureId: textureId);
}