SMSCodeRequestedAction constructor
SMSCodeRequestedAction(
- void callback(
- BuildContext context,
- AuthAction? action,
- Object flowKey,
- String phoneNumber,
An action that is called when user requests a sign in with the phone number. Could be used to show a SMSCodeInputScreen or trigger a custom logic:
SignInScreen(
actions: [
SMSCodeRequestedAction((context, action, flowKey, phoneNumber) {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => SMSCodeInputScreen(),
),
);
}),
]
);
Implementation
SMSCodeRequestedAction(this.callback);