isBinary method

bool isBinary()

Checks if contains binary characters.

Implementation

bool isBinary() {
  RegExp regex = RegExp(r'\ufffd');
  return regex.hasMatch(this);
}