withError method

Page<TData, TParam> withError(
  1. Object e, [
  2. StackTrace? s
])

Implementation

Page<TData, TParam> withError(Object e, [StackTrace? s]) {
  return Page<TData, TParam>(
    param: param,
    error: e,
    stackTrace: s,
    fetchedAt: DateTime.now(),
  );
}