isPython property

bool get isPython

Checks if a file path or URL represents a Python script.

Implementation

bool get isPython {
  final mt = mimeType();
  return mt == 'text/x-python';
}