restoreContext method Null safety

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

Apply the context for next layout

Implementation

@override
void restoreContext(covariant WidgetContext context) {
  if (child is SpanningWidget) {
    (child as SpanningWidget).restoreContext(context);
  }
}