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