apply method

  1. @override
void apply(
  1. covariant GridViewContext other
)
override

Called before relayout to restore the saved state and restart the layout in the same conditions

Implementation

@override
void apply(GridViewContext other) {
  firstChild = other.firstChild;
  lastChild = other.lastChild;
  childCrossAxis = other.childCrossAxis ?? childCrossAxis;
  childMainAxis = other.childMainAxis ?? childMainAxis;
}