copyWith method Null safety

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

Implementation

@override
void copyWith(dynamic others) {
  super.copyWith(others);
  if (others is OpenChannel) {
    participantCount = others.participantCount;
    operators = List<User>.from(others.operators);
    entered = others.entered;
  }
}