observe method

Stream<String> observe({
  1. String? key,
})

Observe changes to the value associated with the specified key in SharedPreferences.

Implementation

Stream<String> observe({String? key}) {
  assert(_key != null);
  return _decorator.listen(key: key);
}