octal static method

String? Function(String?) octal({
  1. String errorMessage = 'Please enter a valid octal number',
})

Ensures the string is an octal number.

Implementation

static String? Function(String?) octal({
  String errorMessage = 'Please enter a valid octal number',
}) {
  return _build(errorMessage, (v) => v.isOctal);
}