mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
34 lines
879 B
Dart
34 lines
879 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:syncrow_web/pages/spaces_management/model/space_model.dart';
|
|
|
|
abstract class SpaceManagementState extends Equatable {
|
|
const SpaceManagementState();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class SpaceManagementInitial extends SpaceManagementState {}
|
|
|
|
class SpaceManagementLoading extends SpaceManagementState {}
|
|
|
|
class SpaceManagementLoaded extends SpaceManagementState {
|
|
final Map<String, List<SpaceModel>> communitySpaces;
|
|
|
|
const SpaceManagementLoaded({required this.communitySpaces});
|
|
|
|
@override
|
|
List<Object> get props => [communitySpaces];
|
|
}
|
|
|
|
class SpaceCreationSuccess extends SpaceManagementState {}
|
|
|
|
class SpaceManagementError extends SpaceManagementState {
|
|
final String errorMessage;
|
|
|
|
const SpaceManagementError(this.errorMessage);
|
|
|
|
@override
|
|
List<Object> get props => [errorMessage];
|
|
}
|