copyWith method

LceLoading<DATA> copyWith({
  1. DATA? data,
  2. bool? dataIsValid,
  3. LoadingType? type,
})

Implementation

LceLoading<DATA> copyWith({ DATA? data, bool? dataIsValid, LoadingType? type}) {
  return LceLoading(
      data ?? this.data,
      dataIsValid ?? this.dataIsValid,
      type ?? this.type
  );
}