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 {
  const ClientHomeWidgetVisibilityToggled(this.widgetId);
  final String widgetId;

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

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

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

class ClientHomeLayoutReset extends ClientHomeEvent {}
