import 'package:equatable/equatable.dart';

abstract class ClientHomeEvent extends Equatable {
  const ClientHomeEvent();

  @override
  List<Object?> get props => <Object?>[];
}

class ClientHomeStarted extends ClientHomeEvent {}

class ClientHomeEditModeToggled extends ClientHomeEvent {}

class ClientHomeWidgetVisibilityToggled extends ClientHomeEvent {
  final String widgetId;
  const ClientHomeWidgetVisibilityToggled(this.widgetId);

  @override
  List<Object?> get props => <Object?>[widgetId];
}

class ClientHomeWidgetReordered extends ClientHomeEvent {
  final int oldIndex;
  final int newIndex;
  const ClientHomeWidgetReordered(this.oldIndex, this.newIndex);

  @override
  List<Object?> get props => <Object?>[oldIndex, newIndex];
}

class ClientHomeLayoutReset extends ClientHomeEvent {}
