import 'package:syncrow_web/pages/spaces_management/all_spaces/model/subspace_model.dart'; class SubSpaceState { final List subSpaces; final List updatedSubSpaceModels; final String errorMessage; SubSpaceState( this.subSpaces, this.updatedSubSpaceModels, this.errorMessage, ); SubSpaceState copyWith({ List? subSpaces, List? updatedSubSpaceModels, String? errorMessage, }) { return SubSpaceState( subSpaces ?? this.subSpaces, updatedSubSpaceModels ?? this.updatedSubSpaceModels, errorMessage ?? this.errorMessage, ); } }