notNullStr property

String get notNullStr

返回非空字符串:null / 空串转换为 ""。

Implementation

String get notNullStr {
  final s = this;
  if (s == null || s.isEmpty) return '';
  return s;
}