StateTransitionListener<T extends AuthController> typedef

StateTransitionListener<T extends AuthController> = void Function(AuthState oldState, AuthState newState, T controller)

A callback that is being called when AuthFlow changes it's state.

Invoked before the widget is built.

Implementation

typedef StateTransitionListener<T extends AuthController> = void Function(
  /// Previous state of the [AuthFlow].
  AuthState oldState,

  /// Current state of the [AuthFlow].
  AuthState newState,

  /// An instance of the [AuthController] that could be used to manipulate the
  /// [AuthFlow].
  T controller,
);