You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
627 B

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:my_flutter_puzzle/models/user_info.dart';
part 'email_auth_state.freezed.dart';
@freezed
class EmailAuthState with _$EmailAuthState {
const factory EmailAuthState() = EmailAuthIdle;
const factory EmailAuthState.processing() = EmailAuthProcessing;
const factory EmailAuthState.done(EUserData user) = EmailAuthDone;
const factory EmailAuthState.storingInfo() = UserStorageProcessing;
const factory EmailAuthState.storageDone(EUserData userData) = UserStorageDone;
const factory EmailAuthState.error({String? message}) = EmailAuthError;
}