ifNotEmpty method

String? ifNotEmpty()

字符串不为空,返回字符串,否则返回 null

Implementation

String? ifNotEmpty() => isNotEmpty == true ? this : null;