build method
Widget
build(
- String key,
- Widget builder(
- BuildContext context,
- T? t
- 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;
}
});
}