mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
27 lines
664 B
Dart
27 lines
664 B
Dart
import 'package:syncrow_web/pages/spaces_management/all_spaces/model/subspace_model.dart';
|
|
|
|
class SubSpaceState {
|
|
final List<SubspaceModel> subSpaces;
|
|
final List<UpdateSubspaceModel> updatedSubSpaceModels;
|
|
final String errorMessage;
|
|
|
|
SubSpaceState(
|
|
this.subSpaces,
|
|
this.updatedSubSpaceModels,
|
|
this.errorMessage,
|
|
);
|
|
|
|
|
|
SubSpaceState copyWith({
|
|
List<SubspaceModel>? subSpaces,
|
|
List<UpdateSubspaceModel>? updatedSubSpaceModels,
|
|
String? errorMessage,
|
|
}) {
|
|
return SubSpaceState(
|
|
subSpaces ?? this.subSpaces,
|
|
updatedSubSpaceModels ?? this.updatedSubSpaceModels,
|
|
errorMessage ?? this.errorMessage,
|
|
);
|
|
}
|
|
}
|