replace method

Resource replace({
  1. ResourceType? type,
  2. String? name,
  3. String? pattern,
  4. bool? create,
  5. bool? delete,
  6. bool? manage,
  7. bool? read,
  8. bool? write,
  9. bool? get,
  10. bool? update,
  11. bool? join,
})

Returns a new Resource based on this one, but with some parts replaced.

Implementation

Resource replace(
        {ResourceType? type,
        String? name,
        String? pattern,
        bool? create,
        bool? delete,
        bool? manage,
        bool? read,
        bool? write,
        bool? get,
        bool? update,
        bool? join}) =>
    Resource(type ?? this.type,
        name: name ?? this.name,
        pattern: pattern ?? this.pattern,
        create: create ?? this.create,
        delete: delete ?? this.delete,
        manage: manage ?? this.manage,
        read: read ?? this.read,
        write: write ?? this.write,
        get: get ?? this.get,
        update: update ?? this.update,
        join: join ?? this.join);