onPlay property

void Function(String sentence, File file)? onPlay
getter/setter pair

Callback executed when a sentence is played. Provides the sentence and its audio file.

Implementation

void Function(String sentence, File file)? onPlay;