checkNotNullOrZero static method

bool checkNotNullOrZero(
  1. double? a
)

Implementation

static bool checkNotNullOrZero(double? a) {
  if (a == null || a == 0) {
    return false;
  } else if (a.abs().toStringAsFixed(4) == "0.0000") {
    return false;
  } else {
    return true;
  }
}