part of 'routine_bloc.dart'; class RoutineState extends Equatable { final List> ifItems; final List> thenItems; final List> availableCards; final List scenes; final List automations; final bool isLoading; final String? errorMessage; const RoutineState({ this.ifItems = const [], this.thenItems = const [], this.availableCards = const [], this.scenes = const [], this.automations = const [], this.isLoading = false, this.errorMessage, }); RoutineState copyWith({ List>? ifItems, List>? thenItems, List? scenes, List? automations, bool? isLoading, String? errorMessage, }) { return RoutineState( ifItems: ifItems ?? this.ifItems, thenItems: thenItems ?? this.thenItems, scenes: scenes ?? this.scenes, automations: automations ?? this.automations, isLoading: isLoading ?? this.isLoading, errorMessage: errorMessage ?? this.errorMessage, ); } @override List get props => [ ifItems, thenItems, scenes, automations, isLoading, errorMessage, ]; }