updateCardinalitySelection method
Implementation
Future<void> updateCardinalitySelection(
CardinalitySelection selection) async {
// Use the shared_preferences package to persist settings locally or the
// http package to persist settings over the network.
_prefs.setBool("cardinality.singularEnabled", selection.singularEnabled);
_prefs.setBool("cardinality.pluralEnabled", selection.pluralEnabled);
}