getUnsafe abstract method

dynamic getUnsafe(
  1. Type type, {
  2. bool? watch,
})

Retrieves the value of the requested type and optionally watches for its change. Returned values are guaranteed to be of type type or valueNotFound when it isn't found. If watch is not set, implementation should perform an educated guess (e.g. based on whether it's called during a build). Exact meaning of "watching" depends on the implementation and may not be supported.

Implementation

dynamic getUnsafe(Type type, {bool? watch});