openExampleSentenceDialog method
A helper function for opening an example sentence dialog.
Implementation
Future<void> openExampleSentenceDialog({
required List<String> exampleSentences,
required Function(List<String>) onSelect,
Function(List<String>)? onAppend,
}) async {
await showDialog(
context: _navigatorKey.currentContext!,
builder: (context) => ExampleSentencesDialogPage(
exampleSentences: exampleSentences,
onSelect: onSelect,
onAppend: onAppend,
),
);
}