AuthenticationBloc constructor Null safety
- {required AuthenticationRepository authRepository}
Implementation
AuthenticationBloc({
required AuthenticationRepository authRepository,
}) : _authRepository = authRepository,
super(const AuthenticationState.unknown()) {
on<AuthenticationRequested>(_onAuthenticationRequested);
on<AuthenticationStatusChanged>(_onAuthenticationStatusChanged);
on<AuthenticationLogoutRequested>(_onAuthenticationLogoutRequested);
}