firstOrIfAbsent method

String? firstOrIfAbsent(
  1. String ifAbsent()
)

return first or calls if Absent

Implementation

String? firstOrIfAbsent(String Function() ifAbsent) =>
    firstOrNull ?? ifAbsent();