parse static method

IconFont? parse(
  1. Uint8List bytes
)

Parses bytes, or returns null when they are not a supported font.

Implementation

static IconFont? parse(Uint8List bytes) {
  try {
    return _FontReader(ByteData.sublistView(bytes)).read();
  } on RangeError {
    return null;
  } on FormatException {
    return null;
  }
}