copyWith method
Implementation
WordState copyWith(
{int? index, bool? isFinal, List<String>? words, int? failure}) =>
WordState(
failure: failure ?? this.failure,
index: index ?? this.index,
words: words ?? this.words,
isFinal: isFinal ?? this.isFinal,
);