isMimeType method

bool isMimeType(
  1. String type
)

Checks if the file has a specific MIME type.

Implementation

bool isMimeType(String type) {
  if (contentType == null) return false;
  return contentType!.toLowerCase().contains(type.toLowerCase());
}