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);
  }
}