import 'package:equatable/equatable.dart';
import 'package:pmu/domain/models/card.dart';


class HomeState extends Equatable {
  final List<MarketData>? data;
  final bool isLoading;
  final String? error;

  const HomeState({
    this.data,
    this.isLoading = false,
    this.error,
  });

  HomeState copyWith({
    List<MarketData>? data,
    bool? isLoading,
    String? error,
  }) =>
      HomeState(
        data: data ?? this.data,
        isLoading: isLoading ?? this.isLoading,
        error: error ?? this.error,
      );

  @override
  List<Object?> get props => [
        data,
        isLoading,
        error,
      ];
}
