languagesOf static method

List<LLLanguageSummary> languagesOf(
  1. BuildContext context
)

The published languages, for a picker. A language added in LexioLab shows up here without an app release.

Implementation

static List<LLLanguageSummary> languagesOf(BuildContext context) {
  final LLContentModel? model = InheritedModel.inheritFrom<LLContentModel>(
      context,
      aspect: LLAspect.languages);
  return model?.languages ?? const <LLLanguageSummary>[];
}