EventSubscriptionSpecification<T> replace({String name, bool isOneShot, EventTarget target, String eventType, void onData(T event), bool useCapture})

Returns a copy of this instance, with every non-null argument replaced by the given value.

Source

EventSubscriptionSpecification<T> replace(
    {String name, bool isOneShot, EventTarget target,
     String eventType, void onData(T event), bool useCapture}) {
  return new EventSubscriptionSpecification<T>(
      name: name ?? this.name,
      isOneShot: isOneShot ?? this.isOneShot,
      target: target ?? this.target,
      eventType: eventType ?? this.eventType,
      onData: onData ?? this.onData,
      useCapture: useCapture ?? this.useCapture);
}