updateCallback method Null safety

void updateCallback(
  1. LayoutCallback<ConstraintType>? value
)

Change the layout callback.

Implementation

void updateCallback(LayoutCallback<ConstraintType>? value) {
  if (value == _callback)
    return;
  _callback = value;
  markNeedsLayout();
}