withDefault method

OvO<T> withDefault(
  1. T defaultValue
)

Implementation

OvO<T> withDefault(T defaultValue) {
  return transform((context, data, next) async {
    return next(data ?? defaultValue);
  });
}