InjectedAuthImp<T, P> constructor
InjectedAuthImp<T, P> ({
- required IAuth<
T, P> repoCreator(), - T? unsignedUser,
- required P param()?,
- required void onSigned(
- T s
- required void onUnsigned()?,
- required Duration autoSignOut(
- T auth
- required FutureOr<
Stream< onAuthStream(T> >- IAuth<
T, P> repo
- IAuth<
- required StateInterceptor<
T> ? stateInterceptor, - required SideEffects<
T> ? sideEffects, - required PersistState<
T> persist()?, - required String? debugPrintWhenNotifiedPreMessage,
- required Object? toDebugString(
- T?
Injected state that is responsible for authenticating and authorization of a user.
Implementation
InjectedAuthImp({
required this.repoCreator,
this.unsignedUser,
required this.param,
required this.onSigned,
required this.onUnsigned,
required this.autoSignOut,
required this.onAuthStream,
//
required StateInterceptor<T>? stateInterceptor,
required this.sideEffects,
required PersistState<T> Function()? persist,
required String? debugPrintWhenNotifiedPreMessage,
required Object? Function(T?)? toDebugString,
}) : super(
creator: () => unsignedUser as T,
initialState: unsignedUser,
sideEffects: sideEffects,
stateInterceptor: stateInterceptor,
persist: persist,
undoStackLength: 0,
dependsOn: null,
autoDisposeWhenNotUsed: false,
debugPrintWhenNotifiedPreMessage: debugPrintWhenNotifiedPreMessage,
toDebugString: toDebugString,
watch: null,
);