copyWith method Null safety

VideoRoomEvent copyWith(
  1. {String? videoroom,
  2. int? room}
)

Implementation

VideoRoomEvent copyWith({
  String? videoroom,
  int? room,
}) {
  return VideoRoomEvent.create(
     videoroom ?? this.videoroom,
     room ?? this.room,
  );
}