References constructor

References([
  1. List? tuples
])

Creates a new instance of references and initializes it with references.

  • tuples (optional) a list of values where odd elements are locators and the following even elements are component references

Implementation

References([List? tuples]) {
  if (tuples != null) {
    for (var index = 0; index < tuples.length; index += 2) {
      if (index + 1 >= tuples.length) break;

      put(tuples[index], tuples[index + 1]);
    }
  }
}