backpackRead<T> function

dynamic backpackRead<T>(
  1. String key, {
  2. dynamic defaultValue,
})

Read data from the Backpack with a key.

Implementation

backpackRead<T>(String key, {dynamic defaultValue}) =>
    Backpack.instance.read<T>(key, defaultValue: defaultValue);