mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2025-12-22 09:30:45 +00:00
35 lines
740 B
Dart
35 lines
740 B
Dart
part of 'profile_bloc.dart';
|
|
|
|
sealed class ProfileState extends Equatable {
|
|
const ProfileState();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
final class ProfileInitialState extends ProfileState {}
|
|
|
|
final class ProfileWaitingState extends ProfileState {}
|
|
|
|
final class ProfileErrorState extends ProfileState {
|
|
const ProfileErrorState({
|
|
required this.message,
|
|
required this.error,
|
|
this.stackTrace,
|
|
});
|
|
final String message;
|
|
final Object error;
|
|
final StackTrace? stackTrace;
|
|
|
|
@override
|
|
List<Object> get props => [message, error];
|
|
}
|
|
|
|
final class ProfileSuccessState extends ProfileState {
|
|
const ProfileSuccessState({required this.data});
|
|
final Object data;
|
|
|
|
@override
|
|
List<Object> get props => [data];
|
|
}
|