discontinuedPackage local_auth_device_credentials has been discontinued.

stopAuthentication method

Future<bool> stopAuthentication()

Returns true if auth was cancelled successfully. This api only works for Android. Returns false if there was some error or no auth in progress.

Returns Future bool true or false:

Implementation

Future<bool> stopAuthentication() async {
  if (_platform.isAndroid) {
    return (await _channel.invokeMethod<bool>('stopAuthentication')) ?? false;
  }
  return Future<bool>.sync(() => true);
}