fileType static method
Creates a FileTypeRule validation rule.
This rule validates that the input file is of a specified type. It can include a custom validation message.
Implementation
static ValidationRule<File?> fileType(List<String> allowedMimeTypes,
{String? message}) =>
FileTypeRule(allowedMimeTypes: allowedMimeTypes, message: message);