readString method

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

Reads a String from this Pickle.

This will throw ArgumentError if the key is empty and no default value has been provided or PickleTypeError if the associated value is of a different type than expected.

Implementation

String readString(final String key, {final String? defaultValue}) =>
    _read(key, defaultValue: defaultValue);