restoreContext method Null safety

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

Apply the context for next layout

Implementation

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