build method
Widget
build(
- WidgetDataBuilder<
T> builder, { - Key? key,
- SimpleWidgetBuilder loading = kLoader,
- bool crossFade = true,
Implementation
Widget build(WidgetDataBuilder<T> builder,
{Key? key,
SimpleWidgetBuilder loading = kLoader,
bool crossFade = true}) {
return FutureBuilder<T>(
future: this,
key: key,
builder: (context, snap) {
return snap.render(
context,
crossFade: crossFade,
loadingFn: loading,
successFn: builder,
);
},
);
}