SpeechSynthesisEventInit constructor

SpeechSynthesisEventInit({
  1. required SpeechSynthesisUtterance utterance,
  2. int? charIndex,
  3. int? charLength,
  4. double? elapsedTime,
  5. String? name,
})

Implementation

factory SpeechSynthesisEventInit(
        {required SpeechSynthesisUtterance utterance,
        int? charIndex,
        int? charLength,
        double? elapsedTime,
        String? name}) =>
    SpeechSynthesisEventInit._(
        utterance: utterance,
        charIndex: charIndex ?? 0,
        charLength: charLength ?? 0,
        elapsedTime: elapsedTime ?? 0,
        name: name ?? '');