destroy method

  1. @override
Future<void> destroy()
override

Implementation

@override
Future<void> destroy() async {
  try {
    await _plugin.destroy().toDart;
  } catch (e) {
    throw Exception('销毁失败: $e');
  }
}