Skip to content

Instantly share code, notes, and snippets.

@Classy-Bear
Created December 16, 2019 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Classy-Bear/049c05096b057442d6aaeda3033d21a7 to your computer and use it in GitHub Desktop.
Save Classy-Bear/049c05096b057442d6aaeda3033d21a7 to your computer and use it in GitHub Desktop.
Future<void> _listaAutenticacionesDisponibles() async {
List<BiometricType> listaAutenticacion;
try {
listaAutenticacion = await _autenticacion.getAvailableBiometrics();
} on PlatformException catch (e) {
print(e);
}
if (!mounted) return;
setState(() {
_autorizacionesDisponibles = listaAutenticacion;
print("Podemos usar: ${_autorizacionesDisponibles.toString()}");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment