copyWith method

SpaceWatch copyWith({
  1. String? type,
  2. WatchUser? watcher,
  3. String? spaceKey,
  4. String? labelName,
  5. String? prefix,
})

Implementation

SpaceWatch copyWith(
    {String? type,
    WatchUser? watcher,
    String? spaceKey,
    String? labelName,
    String? prefix}) {
  return SpaceWatch(
    type: type ?? this.type,
    watcher: watcher ?? this.watcher,
    spaceKey: spaceKey ?? this.spaceKey,
    labelName: labelName ?? this.labelName,
    prefix: prefix ?? this.prefix,
  );
}