addRuntimeHints abstract method

void addRuntimeHints(
  1. List<RuntimeHint> hints
)

Adds multiple RuntimeHint values to the system.

This is used when the reflection system or user code wants to register a batch of descriptors at once.

Example

descriptors.addRuntimeHints([
  RuntimeHint(type: MyClass, newInstance: ...),
  RuntimeHint(type: AnotherClass, invokeMethod: ...),
]);

Implementation

void addRuntimeHints(List<RuntimeHint> hints);