# StandardRuntimeProvider class final

Default mutable implementation of ConfigurableRuntimeProvider.

This class collects runtime metadata during the context construction phase. Internally, it stores discovered libraries, packages, assets, environment entries, and special types. Once all metadata is added, it can be finalized into an immutable `ReflectedContext` via `build`.

This class is used by the runtime engine, compilers, and custom context processors that extend the metadata model.

## Example

    final context = StandardRuntimeProvider();
    // Assuming you have a way to create ReflectedLibrary instances
    // context.addLibrary(myReflectedLibrary);
    context.addEnvironment('env', 'dev');

    final runtime = context.build();
    print(runtime.getMetadata().getAllClasses().length);

Inheritance
  - Object
  - RuntimeProvider
  - ConfigurableRuntimeProvider
  - StandardRuntimeProvider

## Constructors

StandardRuntimeProvider.new()
  Default mutable implementation of ConfigurableRuntimeProvider.

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

addAsset(Asset asset) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addAssets(List<Asset> assets, {bool replace = false}) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addLibraries(List<LibraryDeclaration> libraries, {bool replace = false}) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addLibrary(LibraryDeclaration library) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addNonDartFile(File file) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addNonDartFiles(List<File> files, {bool replace = false}) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addPackage(Package package) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addPackages(List<Package> packages, {bool replace = false}) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addSpecialType(TypeDeclaration type) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
addSpecialTypes(List<TypeDeclaration> types, {bool replace = false}) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
getAllAssets() → List<Asset>
  Returns all assets available in the reflection context.
  override
getAllLibraries() → List<LibraryDeclaration>
  Returns all reflected libraries available in the reflection context.
  override
getAllPackages() → List<Package>
  Returns all packages available in the reflection context.
  override
getNonDartFiles() → List<File>
  Represents a runtime reflection context for a Dart application, providing access to libraries, packages, assets, and metadata.
  override
getRuntimeResolver() → RuntimeResolver
  Represents a runtime reflection context for a Dart application, providing access to libraries, packages, assets, and metadata.
  override
getSpecialTypes() → List<TypeDeclaration>
  Represents a runtime reflection context for a Dart application, providing access to libraries, packages, assets, and metadata.
  override
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
setRuntimeResolver(RuntimeResolver resolver) → void
  A mutable context used to collect and assemble metadata during the framework’s initialization or AOT compilation phase.
  override
toString() → String
  A string representation of this object.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited