dispose method

Future<void> dispose()

Remove callback listener.

Implementation

Future<void> dispose() async {
  if (Platform.isAndroid) {
    final hostApi = this.hostApi;
    if (hostApi == null) return;
    return await hostApi.dispose();
  } else {
    return await _channel.invokeMethod('dispose');
  }
}