isZero static method

bool isZero(
  1. num? value
)

是否为0

Implementation

static bool isZero(num? value) {
  return value == null || value == 0;
}