buildF method

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

Implement this function instead of the build() function so to utilize a built-in FutureBuilder Widget and InheritedWidget. Not, it's already implemented in mixin FutureBuilderStateMixin

Implementation

@override
Widget buildF(BuildContext context) => _useInherited
    ? _StateXInheritedWidget(
        key: ValueKey<StateX>(this),
        state: this,
        child: _child ??= buildIn(context),
      )
    : buildIn(context);