forgetDevice method

  1. @override
Future<void> forgetDevice([
  1. AuthDevice? device
])

Forgets device, or the current device, if no parameters are given.

Implementation

@override
Future<void> forgetDevice([AuthDevice? device]) async {
  try {
    await _channel.invokeMethod<void>('forgetDevice', device?.toJson());
  } on PlatformException catch (e) {
    throw transformDeviceException(e);
  }
}