build method

Widget build(
  1. String key,
  2. Widget builder(
    1. BuildContext context,
    2. T? t
    ), {
  3. bool waitForFirst = true,
})

Implementation

Widget build(String key, Widget builder(BuildContext context, T? t),
    {bool waitForFirst = true}) {
  return StreamBuilder<T>(
      key: Key(key),
      initialData: this.resolve(),
      stream: this.after,
      builder: (context, snapshot) {
        if (snapshot.hasData || waitForFirst == false) {
          return builder(context, snapshot.data);
        } else {
          return emptyBox;
        }
      });
}