saveContext method Null safety

  1. @override
WidgetContext saveContext()
override

Get unmodified mutable context object

Implementation

@override
WidgetContext saveContext() {
  var index = 0;
  for (final child in children) {
    _context.partitionContext[index] = child.saveContext();
    index++;
  }
  return _context;
}