allZeros method

bool allZeros(
  1. String? s, [
  2. int start = 0
])

Implementation

bool allZeros(String? s, [int start = 0]) {
  if (s == null) {
    return false;
  } else {
    for (int i = start; i < s.length; i++) {
      if (s[i] != '0') {
        return false;
      }
    }
    return true;
  }
}