import 'package:widgets/load_state_layout.dart';

class MyFollowerState {
  //页面 LoadView 状态的展示
  LoadState loadingState;
  String? errorMessage;

  int? page;
  int? limit = 10;
  int? count = 0;
  List<Map<String, dynamic>> list;

  MyFollowerState({
    this.loadingState = LoadState.State_Loading,
    String? errorMessage,
    required this.list,
  });

  MyFollowerState copyWith({
    LoadState? loadingState,
    String? errorMessage,
    int? page,
    int? limit,
    int? count,
    List<Map<String, dynamic>>? list,
  }) {
    return MyFollowerState(
      loadingState: loadingState ?? this.loadingState,
      errorMessage: errorMessage ?? this.errorMessage,
      list: list ?? this.list,
    );
  }
}