XTypeGroup constructor
const
XTypeGroup({})
Creates a new group with the given label and file extensions.
A group with none of the type options provided indicates that any type is allowed.
Implementation
const XTypeGroup({
this.label,
List<String>? extensions,
this.mimeTypes,
List<String>? uniformTypeIdentifiers,
this.webWildCards,
@Deprecated('Use uniformTypeIdentifiers instead') List<String>? macUTIs,
}) : _extensions = extensions,
assert(uniformTypeIdentifiers == null || macUTIs == null,
'Only one of uniformTypeIdentifiers or macUTIs can be non-null'),
uniformTypeIdentifiers = uniformTypeIdentifiers ?? macUTIs;