attach method

  1. @override
Future<int> attach(
  1. int index
)
override

Attach texture to a player index and return texture ID

Implementation

@override
Future<int> attach(int index) async {
  final textureId = await methodChannel.invokeMethod<int>('attach', {
    'index': index,
  });
  return textureId ?? -1;
}