prepareModelForSession method

void prepareModelForSession(
  1. BuildContext context,
  2. List<String> indicative,
  3. Verb verb,
  4. String? mode,
  5. String? tense,
)

Implementation

void prepareModelForSession(BuildContext context, List<String> indicative,
    Verb verb, String? mode, String? tense) {
  final VerbTestModel model =
      Provider.of<VerbTestModel>(context, listen: false);
  PracticeSessionUtil.initialiseVerbTestModel(
      model,
      widget._settingsController.cardinalitySelection,
      indicative,
      verb,
      mode!,
      tense!);
}