nullIfBlank property

String? get nullIfBlank

Returns null if string is blank. Otherwise, returns the string.

Implementation

String? get nullIfBlank => ifBlank(null);