build method

FutureBuilder<Widget> build(
  1. Widget builder(
    1. T
    ), {
  2. Widget? loading,
})

Implementation

FutureBuilder<Widget> build(Widget Function(T) builder, {Widget? loading}) =>
    FutureBuilder<Widget>(
      future: then(builder),
      builder: (context, snap) =>
          snap.hasData ? snap.data! : loading ?? const SizedBox.shrink(),
    );