ifBlank method

String? ifBlank(
  1. String? newString
)

Returns the string if it is not null, empty or blank, otherwise returns the specified string.

Implementation

String? ifBlank(String? newString) => this != null && this!.isNotBlank ? this : newString;