MapPrefNotifier<T> constructor

MapPrefNotifier<T>(
  1. SharedPreferences prefs,
  2. String prefKey,
  3. T mapFrom(
    1. String?
    ),
  4. String mapTo(
    1. T
    ),
)

Implementation

MapPrefNotifier(this.prefs, this.prefKey, this.mapFrom, this.mapTo)
    : super(mapFrom(prefs.getString(prefKey)));