isWord property

bool get isWord

Checks if string is an word file.

Implementation

bool get isWord {
  final ext = _string.toLowerCase();

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