mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2025-12-22 17:40:45 +00:00
* feat(app): Добавить пример со Scope * fix scope * feat: добавить скоуп с внутренней зависимостью от репозитория (#6) Co-authored-by: Artem Barkalov <artembark@gmail.com> * feat: исправить обалсть видимости ProfileScope * feat: добавить фикс namespace плагинов --------- Co-authored-by: PetrovY <y.petrov@friflex.com> Co-authored-by: Artem Barkalov <artembark@gmail.com>
37 lines
742 B
Dart
37 lines
742 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 {
|
|
final String message;
|
|
final Object error;
|
|
final StackTrace? stackTrace;
|
|
|
|
const ProfileErrorState({
|
|
required this.message,
|
|
required this.error,
|
|
this.stackTrace,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [message, error];
|
|
}
|
|
|
|
final class ProfileSuccessState extends ProfileState {
|
|
final Object data;
|
|
|
|
const ProfileSuccessState({required this.data});
|
|
|
|
@override
|
|
List<Object> get props => [data];
|
|
}
|