element property
The element composed from this fragment and possibly other fragments.
Implementation
@override
FieldElement2 get element {
if (_element != null) {
return _element!;
}
FieldFragment firstFragment = this;
var previousFragment = firstFragment.previousFragment;
while (previousFragment != null) {
firstFragment = previousFragment;
previousFragment = firstFragment.previousFragment;
}
// As a side-effect of creating the element, all of the fragments in the
// chain will have their `_element` set to the newly created element.
return FieldElementImpl2(firstFragment as FieldElementImpl);
}
set
element
(FieldElement2 element)
inherited
Implementation
set element(FieldElement2 element) => _element = element;