FutureBuilder<T> constructor

const FutureBuilder<T>({Key key, Future<T> future, T initialData, @required AsyncWidgetBuilder<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 FutureBuilder({
  Key key,
  this.future,
  this.initialData,
  @required this.builder
}) : assert(builder != null),
     super(key: key);