or method

T or(
  1. T fallback
)

Returns this value if it is truthy, otherwise returns fallback.

Example:

final name = userInput.or('Anonymous');

Implementation

T or(T fallback) {
  return falsy(this, fallback);
}