firstOr method

String? firstOr(
  1. String def
)

return first or default value

Implementation

String? firstOr(String def) => firstOrNull ?? def;