openImmersionKitSentenceDialog method
- {required List<
ImmersionKitResult> exampleSentences, - required dynamic onSelect( ),
- required dynamic onAppend( )}
A helper function for opening an example sentence dialog for sentences returned from ImmersionKitEnhancement.
Implementation
Future<void> openImmersionKitSentenceDialog({
required List<ImmersionKitResult> exampleSentences,
required Function(List<ImmersionKitResult>) onSelect,
required Function(List<ImmersionKitResult>) onAppend,
}) async {
await showDialog(
context: _navigatorKey.currentContext!,
builder: (context) => ImmersionKitSentencesDialogPage(
exampleSentences: exampleSentences,
onSelect: onSelect,
onAppend: onAppend,
),
);
}