copyWith method

AppState copyWith({
  1. AppStatus? status,
  2. bool? isLoading,
  3. String? error,
})

Implementation

AppState copyWith({
  AppStatus? status,
  bool? isLoading,
  String? error,
}) {
  return AppState(
    status: status ?? this.status,
    isLoading: isLoading ?? this.isLoading,
    error: error,
  );
}