copyWith method
Creates a copy of this result with the provided values.
Implementation
@override
Result<T> copyWith({T? data, DateTime? lastUpdate}) => Error(
error: error,
stackTrace: stackTrace,
data: data ?? this.data,
lastUpdate: lastUpdate ?? this.lastUpdate,
);