auth_state.dart 505 B

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