fromBackpack<T> method

T? fromBackpack<T>({
  1. dynamic defaultValue,
})

Read a value from the Backpack instance.

Implementation

T? fromBackpack<T>({dynamic defaultValue}) {
  return Backpack.instance.read<T>(this, defaultValue: defaultValue);
}