lastOrIfAbsent method

String? lastOrIfAbsent(
  1. String ifAbsent()
)

return last or calls if Absent

Implementation

String? lastOrIfAbsent(String Function() ifAbsent) =>
    lastOrNull ?? ifAbsent();