Reference constructor

Reference(
  1. dynamic locator,
  2. 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;
}