copyWith method

  1. @override
Result<T> copyWith({
  1. T? data,
  2. DateTime? lastUpdate,
})
override

Creates a copy of this result with the provided values.

Implementation

@override
Result<T> copyWith({T? data, DateTime? lastUpdate}) =>
    Loading(data: data ?? this.data, lastUpdate: lastUpdate ?? this.lastUpdate);