AppFlowy/app_flowy/lib/welcome/domain/auth_state.dart

12 lines
464 B
Dart
Raw Normal View History

2021-07-12 15:27:58 +00:00
import 'package:flowy_sdk/protobuf/errors.pb.dart';
import 'package:flowy_sdk/protobuf/user_detail.pb.dart';
2021-06-19 15:41:19 +00:00
import 'package:freezed_annotation/freezed_annotation.dart';
part 'auth_state.freezed.dart';
@freezed
abstract class AuthState with _$AuthState {
2021-07-12 15:27:58 +00:00
const factory AuthState.authenticated(UserDetail userDetail) = Authenticated;
const factory AuthState.unauthenticated(UserError error) = Unauthenticated;
const factory AuthState.initial() = _Initial;
2021-06-19 15:41:19 +00:00
}