FutureBuilder2<T> constructor

const FutureBuilder2<T>({
  1. Key? key,
  2. required Future<T> future,
  3. required ResponseWidgetBuilder<T> builder,
})

Creates a widget that builds itself based on the latest snapshot of interaction with a Future.

The builder must not be null.

Implementation

const FutureBuilder2({
  Key? key,
  required this.future,
  required this.builder,
}) : super(key: key);