toInitial method

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

Attempts to convert the result to the Initial loading state.

Implementation

Result<T> toInitial({T? data, DateTime? lastUpdate}) => value = value.toInitial(data: data, lastUpdate: lastUpdate);