copyWith method Null safety

TypedEvent copyWith(
  1. {T? event,
  2. RTCSessionDescription? jsep}
)

Implementation

TypedEvent copyWith({
  T? event,
  RTCSessionDescription? jsep,
}) {
  return TypedEvent(
    event: event ?? this.event,
    jsep: jsep ?? this.jsep,
  );
}