clone method

  1. @override
WidgetContext clone()
override

Called after layout to save the state

Implementation

@override
WidgetContext clone() {
  final context = PartitionsContext(partitionContext.length);
  for (var index = 0; index < partitionContext.length; index++) {
    context.partitionContext[index] = partitionContext[index]?.clone();
  }

  return context;
}