copyWith method

TrackEvent copyWith({
  1. String? eventName,
  2. EventType? eventType,
  3. Map<String, dynamic>? properties,
})

Implementation

TrackEvent copyWith({
  String? eventName,
  EventType? eventType,
  Map<String, dynamic>? properties,
}) {
  return TrackEvent(
    eventName: eventName ?? this.eventName,
    eventType: eventType ?? this.eventType,
    properties: properties ?? this.properties,
  );
}