get<T> static method

T? get<T>({
  1. dynamic name,
  2. bool silent = false,
})

Get the plain injected object

Implementation

static T? get<T>({
  dynamic name,
  bool silent = false,
}) {
  return Injector.get<T>(
    name: name,
    silent: silent,
  );
}