# create static method

ProtectionDomain create(

1. String name, {
2. Set<DomainPermission>? permissions,
3. Map<String, dynamic>? properties,
4. ProtectionDomain? parent,

})

Creates a new custom ProtectionDomain with the specified `name`, optional `permissions`, `properties`, and an optional `parent`.

### Example:

    var devDomain = ProtectionDomain.create(
      'development',
      permissions: {DomainPermission.READ_FIELDS, DomainPermission.WRITE_FIELDS},
    );

## Implementation

    static ProtectionDomain create(
      String name, {
      Set<DomainPermission>? permissions,
      Map<String, dynamic>? properties,
      ProtectionDomain? parent,
    }) => _ProtectionDomain.create(name, permissions: permissions, properties: properties, parent: parent);