AuthenticationBloc constructor Null safety

AuthenticationBloc(
  1. {required AuthenticationRepository authRepository}
)

Implementation

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