isWord property

bool get isWord

Determines whether a given string represents a Word file.

Implementation

bool get isWord {
  final ext = toLowerCase();

  return ext.endsWith('.doc') || ext.endsWith('.docx');
}