Future<void> _onLogin(AuthenticationEvent event, Emitter<AuthenticationState> emit) async { try { emit(state.copyWith(event: AuthenticationEvents.loginStart)); ...