Result<T>.cache constructor

Result<T>.cache({
  1. T? data,
  2. Exception? exception,
})

Factory method to create a cache result.

Implementation

factory Result.cache({T? data, Exception? exception}) =>
    CacheResult(data: data, exception: exception);