Field constructor

Field(
  1. FieldElement element,
  2. Library library,
  3. PackageGraph packageGraph,
  4. ContainerAccessor getter,
  5. ContainerAccessor setter
)

Implementation

Field(FieldElement element, Library library, PackageGraph packageGraph,
    this.getter, this.setter)
    : super(element, library, packageGraph) {
  assert(getter != null || setter != null);
  if (getter != null) getter.enclosingCombo = this;
  if (setter != null) setter.enclosingCombo = this;
}