action property

  1. @override
AuthAction action
override

An authentication action to perform.

Implementation

@override
AuthAction get action {
  if (_action != null) {
    return _action!;
  }

  if (auth.currentUser != null) {
    return AuthAction.link;
  }

  return AuthAction.signIn;
}
void action=(AuthAction value)

Use this setter to override the autoresolved AuthAction. Autoresolved action is AuthAction.signIn if there is no currently signed in user, AuthAction.link otherwise.

Implementation

set action(AuthAction value) {
  _action = value;
}