dispose method

  1. @override
Future<void> dispose(
  1. int textureId
)
override

Implementation

@override
Future<void> dispose(int textureId) async {
  await methodChannel
      .invokeMethod<bool>('shutdown', {"textureId": textureId});
  // NOTE: delay some time to wait last callbacks finished
  await Future.delayed(const Duration(milliseconds: 100));
  await methodChannel.invokeMethod<bool>('dispose', {"textureId": textureId});
}