import 'package:equatable/equatable.dart';

abstract class LogoutState extends Equatable {
  const LogoutState();

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

class LogoutInitial extends LogoutState {}

class LogoutLoading extends LogoutState {}

class LogoutSuccess extends LogoutState {}

class LogoutFailure extends LogoutState {
  const LogoutFailure([this.message]);

  final String? message;

  bool get hasMessage => message != null && message!.isNotEmpty;

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