strNoEmpty static method

bool strNoEmpty(
  1. String? value
)

字符串不为空

Implementation

static bool strNoEmpty(String? value) {
  if (value == null) return false;

  return value.trim().isNotEmpty;
}