operator | method

String operator |(
  1. Object? s
)

Return left string if not blank. Otherwise return right string.

Implementation

String operator |(Object? s) => ifBlank("$s") ?? "";