copyWith method

LoadableState<T> copyWith({
  1. bool? isLoading,
  2. T? data,
  3. String? errorMessage,
})

Implementation

LoadableState<T> copyWith({
  bool? isLoading,
  T? data,
  String? errorMessage,
}) {
  return LoadableState(
    isLoading: isLoading ?? this.isLoading,
    data: data ?? this.data,
    errorMessage: errorMessage,
  );
}