debugAssertLayoutUpToDate method Null safety

void debugAssertLayoutUpToDate()

Assert that the last layout still matches the constraints.

Implementation

void debugAssertLayoutUpToDate() {
  assert(
    _textLayoutLastMaxWidth == constraints.maxWidth &&
    _textLayoutLastMinWidth == constraints.minWidth,
    'Last width ($_textLayoutLastMinWidth, $_textLayoutLastMaxWidth) not the same as max width constraint (${constraints.minWidth}, ${constraints.maxWidth}).',
  );
}