WordInfo constructor

WordInfo({
  1. Duration? startOffset,
  2. Duration? endOffset,
  3. String? word,
  4. double? confidence,
  5. String? speakerLabel,
})

Implementation

factory WordInfo({
  $5.Duration? startOffset,
  $5.Duration? endOffset,
  $core.String? word,
  $core.double? confidence,
  $core.String? speakerLabel,
}) {
  final $result = create();
  if (startOffset != null) {
    $result.startOffset = startOffset;
  }
  if (endOffset != null) {
    $result.endOffset = endOffset;
  }
  if (word != null) {
    $result.word = word;
  }
  if (confidence != null) {
    $result.confidence = confidence;
  }
  if (speakerLabel != null) {
    $result.speakerLabel = speakerLabel;
  }
  return $result;
}