VideoThumb constructor

const VideoThumb({
  1. required VideoThumbTextSize textSize,
  2. required String title,
  3. required String lengthText,
  4. required String thumbUrl,
  5. required bool shouldShowPlayButton,
  6. required void onTap(),
  7. Key? key,
})

Implementation

const VideoThumb(
    {required VideoThumbTextSize textSize,
    required String title,
    required String lengthText,
    required String thumbUrl,
    required bool shouldShowPlayButton,
    required void Function() onTap,
    Key? key})
    : _textSize = textSize,
      _title = title,
      _lengthText = lengthText,
      _thumbUrl = thumbUrl,
      _shouldShowPlayButton = shouldShowPlayButton,
      _onTap = onTap,
      super(key: key);