isNullOrEmpty function

bool isNullOrEmpty(
  1. String? str
)

非空判断

Implementation

bool isNullOrEmpty(String? str) {
  return str == null || str.length == 0;
}