buildF method
Implement this function instead of the build() function to utilize a built-in FutureBuilder Widget.
Implementation
@override
Widget buildF(BuildContext context) {
_buildFOverridden = false;
if (useInherited) {
// todo: Replace with builder(context) one day
_child ??= buildIn(context); // Always called in the first round gp
} else {
_child = buildIn(context);
}
// The InheritedWidget is always used here.
return StateXInheritedWidget(
key: _key,
state: this,
child: _child ?? const SizedBox.shrink(),
);
}