readString static method

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

Reads a string with a sensible default.

Implementation

static String readString(String key, {String defaultValue = ''}) =>
    read<String>(key, defaultValue: defaultValue) ?? defaultValue;