set<T extends Object> abstract method

void set<T extends Object>(
  1. T value, {
  2. String? name,
})

Registers value as the override for type T.

Subsequent calls to get or getAsync for T (and the optional name) will return value instead of delegating to module.

Implementation

void set<T extends Object>(T value, {String? name});