lastOr method

String? lastOr(
  1. String def
)

return last element or the default value

Implementation

String? lastOr(String def) => lastOrNull ?? def;