isOTF property

bool get isOTF

Checks if a file path or URL represents an OpenType Font file.

Implementation

bool get isOTF {
  final mt = mimeType();
  if (mt == null) return false;
  return mt.contains('font') && mt.contains('otf');
}