Приложение на флаторе, настройки
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'auth_event.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class AuthEvent with _$AuthEvent {
|
||||
const factory AuthEvent.started() = AuthEventStarted;
|
||||
const factory AuthEvent.loginRequested(String email, String password) = AuthEventLoginRequested;
|
||||
const factory AuthEvent.registerRequested(String email, String password, String name) = AuthEventRegisterRequested;
|
||||
const factory AuthEvent.logoutRequested() = AuthEventLogoutRequested;
|
||||
const factory AuthEvent.authChecked() = AuthEventAuthChecked;
|
||||
const factory AuthEvent.emailChanged(String email) = AuthEventEmailChanged;
|
||||
const factory AuthEvent.passwordChanged(String password) = AuthEventPasswordChanged;
|
||||
const factory AuthEvent.nameChanged(String name) = AuthEventNameChanged;
|
||||
}
|
||||
Reference in New Issue
Block a user