Reference constructor
- dynamic locator,
- dynamic component
Create a new instance of the reference object and assigns its values.
locator
a locator to find the reference.reference
a reference to component.
Implementation
Reference(locator, component) {
if (component == null) throw Exception('Component cannot be null');
_locator = locator;
_component = component;
}