isNormalized property

  1. @override
bool get isNormalized
override

Whether the constraint is expressed in a consistent manner.

Implementation

@override
bool get isNormalized {
  return scrollOffset >= 0.0
      && crossAxisExtent >= 0.0
      && axisDirectionToAxis(axisDirection) != axisDirectionToAxis(crossAxisDirection)
      && viewportMainAxisExtent >= 0.0
      && remainingPaintExtent >= 0.0;
}