INNER CODE UNIT · Dart
Anchor
hackware1993/Flutter_ConstraintLayout · lib/src/core.dart:515
class Anchor {
final double _xOffset;
final AnchorType _xType;
final double _yOffset;
final AnchorType _yType;
Anchor(this._xOffset, this._xType, this._yOffset, this._yType);
Offset _resolve(Size size) {
assert(() {
debugCheckAnchorBounds(_xOffset, _xType, size.width);
debugCheckAnchorBounds(_yOffset, _yType, size.height);
return true;
}());
double x;
double y;
if (_xType == AnchorType.absolute) {
x = _xOffset;