defaultTo method

Self defaultTo(
  1. T value
)

Implementation

Self defaultTo(T value) {
  return transform((current) => current ?? value);
}