restoreContext method

  1. @override
void restoreContext(
  1. covariant PartitionsContext context
)
override

Apply the context for next page layout. Called before layout to prepare for next page

Implementation

@override
void restoreContext(PartitionsContext context) {
  _context.apply(context);
  var index = 0;
  for (final child in children) {
    if (child.canSpan) {
      child.restoreContext(_context.partitionContext[index]!);
    }
    index++;
  }
}