destroy method

Future<int> destroy()

Implementation

Future<int> destroy() async {
  int code = await _channel.invokeMethod('destroy') ?? -1;
  if (code != 0) return code;
  _instance = null;
  return code;
}