destroy function

Future<bool> destroy()

释放引用 仅在Android端有效

Implementation

Future<bool> destroy() async {
  if (Platform.isAndroid) {
    bool isDestroy = await _channel.invokeMethod("destroy");
    return isDestroy;
  } else {
    return true;
  }
}