AuthFlowBuilderCallback<T extends AuthController> typedef
AuthFlowBuilderCallback<T extends AuthController> =
Widget Function(BuildContext context, AuthState state, T ctrl, Widget? child)
A callback that is being called every time the AuthFlow changes it's state. Returned widget is rendered as a child of AuthFlowBuilder.
Implementation
typedef AuthFlowBuilderCallback<T extends AuthController> = Widget Function(
BuildContext context,
/// Current [AuthState] of the [AuthFlow].
AuthState state,
/// An instance of [AuthController] that could be used to control the
/// [AuthFlow].
T ctrl,
/// A [Widget] that was provided to the [AuthFlowBuilder].
Widget? child,
);