auth method

  1. @override
Future<bool> auth(
  1. String reason
)
override

Implementation

@override
Future<bool> auth(String reason) async {
  final LocalAuthentication localAuth = LocalAuthentication();
  try {
    final bool didAuthenticate = await localAuth.authenticate(
        localizedReason: reason, authMessages: TBIBAuth.values);
    return didAuthenticate;
    // ···
  } on PlatformException {
    rethrow;
  }
}