build method

Widget build(
  1. WidgetDataBuilder<T> builder, {
  2. Key? key,
  3. SimpleWidgetBuilder loading = kLoader,
  4. 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,
      );
    },
  );
}