dispose method

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

Implementation

@override
Future<void> dispose(int viewId) async {
  try {
    var methodChannel = MethodChannel('${channelPrefix}_$viewId');
    await methodChannel.invokeMethod<void>('dispose');
  } on PlatformException catch (e) {
    debugPrint('${e.code}: ${e.message}');
  }
}