part of 'mobility_bloc.dart';

@immutable
class MobilityState {
  const MobilityState({
    this.hasACar,
    this.canRelocate,
    this.isInEditMode = true,
    this.status = StateStatus.idle,
  });

  final bool? hasACar;
  final bool? canRelocate;
  final bool isInEditMode;
  final StateStatus status;

  MobilityState copyWith({
    bool? hasACar,
    bool? canRelocate,
    bool? isInEditMode,
    StateStatus? status,
  }) {
    return MobilityState(
      hasACar: hasACar ?? this.hasACar,
      canRelocate: canRelocate ?? this.canRelocate,
      isInEditMode: isInEditMode ?? this.isInEditMode,
      status: status ?? this.status,
    );
  }
}
