saveContext method Null safety

  1. @override
WidgetContext saveContext()
override

Get unmodified mutable context object

Implementation

@override
WidgetContext saveContext() {
  if (_child is SpanningWidget) {
    return (_child as SpanningWidget).saveContext();
  }

  throw UnimplementedError();
}