orIfBlank method Null safety

String orIfBlank(
  1. String string
)

return the given string if this is blank

Implementation

String orIfBlank(String string) => this.isNotBlank ? this! : string;