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, nothing will be displayed.

Implementation

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