TrackingEventDetails.immutable constructor

TrackingEventDetails.immutable({
  1. num? value,
  2. Map<String, dynamic> attributes = const {},
})

Validates and freezes custom fields for asynchronous tracking transports. The legacy const constructor retains its original attribute semantics.

Implementation

TrackingEventDetails.immutable({
  this.value,
  Map<String, dynamic> attributes = const {},
}) : attributes = snapshotTrackingDetails(attributes);