copy method

TaskState copy({
  1. bool? refreshing,
  2. bool? loading,
  3. bool? refreshNoMore,
  4. bool? loadNoMore,
})

Implementation

TaskState copy(
    {bool? refreshing,
    bool? loading,
    bool? refreshNoMore,
    bool? loadNoMore}) {
  return TaskState(
    refreshing: refreshing ?? this.refreshing,
    loading: loading ?? this.loading,
    refreshNoMore: refreshNoMore ?? this.refreshNoMore,
    loadNoMore: loadNoMore ?? this.loadNoMore,
  );
}