copyWith method Null safety

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

Implementation

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

  channelUrl = others.channelUrl;
  name = others.name;
  coverUrl = others.coverUrl;
  creator = others.creator;
  createdAt = others.createdAt;
  data = others.data;
  customType = others.customType;
}