strNotEmpty static method

bool strNotEmpty(
  1. String? value
)

字符串不为空

Implementation

static bool strNotEmpty(String? value) {
  if (value == null) return false;
  return value.trim().isNotEmpty;
}