debugAssertLayoutUpToDate method

void debugAssertLayoutUpToDate()

Assert that the last layout still matches the constraints.

Implementation

void debugAssertLayoutUpToDate() {
  assert(
    _textLayoutLastMaxHeight == constraints.maxHeight &&
        _textLayoutLastMinHeight == constraints.minHeight,
    'Last height ($_textLayoutLastMinHeight, $_textLayoutLastMaxHeight) not the same as max height constraint (${constraints.minHeight}, ${constraints.maxHeight}).',
  );
}