isOctal property

bool isOctal

returns true if the string is octal, other-wise false


'123'.isOctal; // true
'justkawal'.isOctal; // false

Implementation

bool get isOctal {
  return reIsOctal.hasMatch(this);
}