build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Implement this function instead of the build() function to utilize a built-in FutureBuilder Widget and InheritedWidget.

Introduce an Inherited widget and simply passing through a 'child' widget. When the Inherited Widget is rebuilt only this build() function is called. i.e. The rest of the widget tree, widget.child, is left alone.

Implementation

@override
Widget build(BuildContext context) => _inheritedStatefulWidget;