isTTF property

bool get isTTF

Checks if a file path or URL represents a TrueType Font file.

Implementation

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