trackVideoPlay method

void trackVideoPlay({
  1. String? videoId,
  2. String? videoTitle,
  3. double? duration,
})

Implementation

void trackVideoPlay({
  String? videoId,
  String? videoTitle,
  double? duration,
}) =>
    event('video_play', properties: {
      if (videoId != null) 'video_id': videoId,
      if (videoTitle != null) 'video_title': videoTitle,
      if (duration != null) 'duration': duration,
    });