put method
- dynamic locator,
- dynamic component
override
Puts a new reference into this reference map.
locator
a locator to find the reference by.component
a component reference to be added.
Implementation
@override
void put(locator, component) {
if (component == null) throw Exception('Component cannot be null');
_references.add(Reference(locator, component));
}