isNumberNotNull static method

bool isNumberNotNull(
  1. dynamic value
)

验证参数是否为空

Implementation

static bool isNumberNotNull(value) {
  return value != null &&
      value.toString().trim().length > 0 &&
      value.toString().trim() != '0';
}