copyWith method

CollectionObject copyWith({
  1. String? id,
  2. String? name,
  3. int? prjId,
  4. CollectionSchema? schema,
  5. CollectionRole? role,
  6. List<String>? keys,
})

Implementation

CollectionObject copyWith({
  final String? id,
  final String? name,
  final int? prjId,
  final CollectionSchema? schema,
  final CollectionRole? role,
  final List<String>? keys,
}) =>
    CollectionObject(
      id: id ?? this.id,
      name: name ?? this.name,
      prjId: prjId ?? this.prjId,
      schema: schema ?? this.schema,
      role: role ?? this.role,
      keys: keys ?? this.keys,
    );