getString static method

String getString(
  1. String key, {
  2. String defaultValue = '',
})

Returns a String value associated with the given key, or defaultValue if the key is not found.

Implementation

static String getString(String key, {String defaultValue = ''}) =>
    _instance.getString(key) ?? defaultValue;