openMassifSentenceDialog method

Future<void> openMassifSentenceDialog(
  1. {required List<MassifResult> exampleSentences,
  2. required dynamic onSelect(
    1. List<MassifResult>
    ),
  3. required dynamic onAppend(
    1. List<MassifResult>
    )}
)

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,
    ),
  );
}