XTypeGroup constructor

const XTypeGroup({
  1. String? label,
  2. List<String>? extensions,
  3. List<String>? mimeTypes,
  4. List<String>? uniformTypeIdentifiers,
  5. List<String>? webWildCards,
  6. @Deprecated('Use uniformTypeIdentifiers instead') List<String>? macUTIs,
})

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;