isNullOrEmpty static method

bool isNullOrEmpty(
  1. String? str
)

检查字符串是否为空

Implementation

static bool isNullOrEmpty(String? str) {
  return str == null || str.isEmpty;
}