processAfterInstantiation method
Processes the pod immediately after instantiation but before property population.
This is the ideal point for performing custom field injection or other initialization that must occur before standard property population.
Control Flow
Returning false from this method will skip all subsequent property
population, including processPropertyValues() and standard property setting.
Parameters
@param pod The newly instantiated pod instance
@param podClass The class metadata of the pod
@param name The name of the pod in the container
@return true to proceed with property population, false to skip it
Example:
@override
Future<bool> processAfterInstantiation(Object pod, Class podClass, String name) async {
if (pod is ManuallyConfigured) {
// Pod handles its own configuration
await pod.manualSetup();
return false; // Skip automatic property population
}
return true; // Proceed with property population
}
Implementation
Future<bool> processAfterInstantiation(Object pod, Class podClass, String name) async => true;