cardinalitySelection method

Future<CardinalitySelection> cardinalitySelection()

Implementation

Future<CardinalitySelection> cardinalitySelection() async {
  Future<CardinalitySelection> future = Future<CardinalitySelection>(() {
    bool? singular = _prefs.getBool("cardinality.singularEnabled");
    bool? plural = _prefs.getBool("cardinality.pluralEnabled");
    CardinalitySelection selection =
        CardinalitySelection(singular ?? true, plural ?? true);
    return selection;
  });
  return future;
}