VisitItem constructor

VisitItem({
  1. required String id,
  2. required String visitId,
  3. double? visitTime,
  4. required String referringVisitId,
  5. required TransitionType transition,
  6. required bool isLocal,
})

Implementation

VisitItem({
  /// The unique identifier for the corresponding [history.HistoryItem].
  required String id,

  /// The unique identifier for this visit.
  required String visitId,

  /// When this visit occurred, represented in milliseconds since the epoch.
  double? visitTime,

  /// The visit ID of the referrer.
  required String referringVisitId,

  /// The [transition type](#transition_types) for this visit from its
  /// referrer.
  required TransitionType transition,

  /// True if the visit originated on this device. False if it was synced from
  /// a different device.
  required bool isLocal,
}) : _wrapped = $js.VisitItem(
        id: id,
        visitId: visitId,
        visitTime: visitTime,
        referringVisitId: referringVisitId,
        transition: transition.toJS,
        isLocal: isLocal,
      );