toNullIfBlank property

String? get toNullIfBlank

Returns null when blank.

Implementation

String? get toNullIfBlank => isBlank ? null : this;