TotpOptions class

Options for configuring the TOTP MFA Experience

@override
Widget build(BuildContext context) {
  return Authenticator(
    totpOptions: const TotpOptions(issuer: 'My App'),
    child: MaterialApp(
      builder: Authenticator.builder(),
      home: Scaffold(
        body: Center(
          child: Text('You are logged in!'),
        ),
      ),
    ),
  ),
}

Constructors

TotpOptions({String? issuer})
Options for configuring the TOTP MFA Experience
const

Properties

hashCode int
The hash code for this object.
no setterinherited
issuer String?
The title displayed in a user's TOTP App preceding the account name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited