enroll method
Enrolls a second factor as identified by the MultiFactorAssertion parameter for the current user.
displayName
can be used to provide a display name for the second factor.
Implementation
Future<void> enroll(
MultiFactorAssertion assertion, {
String? displayName,
}) async {
if (assertion._delegate is TotpMultiFactorGeneratorPlatform) {
assert(displayName != null, 'displayName is mandatory for TOTP');
}
return _delegate.enroll(assertion._delegate, displayName: displayName);
}