copyWith method

LceError<DATA> copyWith({
  1. DATA? data,
  2. bool? dataIsValid,
  3. Exception? error,
})

Implementation

LceError<DATA> copyWith({ DATA? data, bool? dataIsValid, Exception? error }) {
  return LceError(
      data ?? this.data,
      dataIsValid ?? this.dataIsValid,
      error ?? this.error
  );
}