onSubtitleText method

void onSubtitleText(
  1. void callback(
    1. double start,
    2. double end,
    3. List<String> text
    )?
)

Implementation

void onSubtitleText(
  void Function(double start, double end, List<String> text)? callback,
) {
  _subtitleCb = callback;
  if (callback == null) {
    Libfvp.unregisterType(nativeHandle, 8);
  } else {
    Libfvp.registerType(nativeHandle, 8, false);
  }
}