auth_state.dart 425 B

1234567891011
  1. import 'package:flowy_sdk/protobuf/flowy-user/protobuf.dart';
  2. import 'package:freezed_annotation/freezed_annotation.dart';
  3. part 'auth_state.freezed.dart';
  4. @freezed
  5. abstract class AuthState with _$AuthState {
  6. const factory AuthState.authenticated(UserProfile userProfile) =
  7. Authenticated;
  8. const factory AuthState.unauthenticated(UserError error) = Unauthenticated;
  9. const factory AuthState.initial() = _Initial;
  10. }