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