ClosedCaption constructor

const ClosedCaption({
  1. Key? key,
  2. String? text,
  3. TextStyle? textStyle,
})

Creates a a new closed caption, designed to be used with VideoPlayerValue.caption.

If text is null or empty, nothing will be displayed.

Implementation

const ClosedCaption({super.key, this.text, this.textStyle});