withoutContext static method

TypeDefinition withoutContext(
  1. String name
)

throw a StateError when resolution is attempted without a context passed down

Implementation

static TypeDefinition withoutContext(String name) => throw StateError(
      "Cannot resolve type $name in a context without a type resolver!",
    );