copyWith method

  1. @override
void copyWith(
  1. dynamic other
)

Implementation

@override
void copyWith(dynamic other) {
  if (other is! BaseChannel) return;

  if (this is! FeedChannel && other is! FeedChannel) {
    coverUrl = other.coverUrl;
    data = other.data;
    customType = other.customType;
    isFrozen = other.isFrozen;
    isEphemeral = other.isEphemeral;
  }

  channelUrl = other.channelUrl;
  name = other.name;
  createdAt = other.createdAt;

  fromCache = other.fromCache;
  dirty = other.dirty;
}