From a855abb177d7c14cb4d7432b8e6578d532321bdb Mon Sep 17 00:00:00 2001 From: Hunter Peress <772917+h-unterp@users.noreply.github.com> Date: Tue, 13 Sep 2022 21:46:17 -0400 Subject: [PATCH 1/3] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63bf7f4..52d857f 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ AsyncBuilder( ) ``` +To avoid rebuilds see ## InitBuilder + Note that you cannot provide both a stream and future. ## AsyncBuilder Features @@ -93,7 +95,7 @@ InitBuilder, for example: ```dart static Future getNumber() async => ...; -build(context) => InitBuilder( +build(context) => InitBuilder>( getter: getNumber, builder: (context, future) => AsyncBuilder( future: future, @@ -120,4 +122,4 @@ build(context) => InitBuilder.arg( ``` The alternate constructors `InitBuilder.arg` to `InitBuilder.arg7` can be used to pass arguments to the `getter`, these -will re-initialize the value if and only if either `getter` or the arguments change. \ No newline at end of file +will re-initialize the value if and only if either `getter` or the arguments change. From 32822df3538e9b1d950137609e560ed5cb229c49 Mon Sep 17 00:00:00 2001 From: Hunter Peress <772917+h-unterp@users.noreply.github.com> Date: Tue, 13 Sep 2022 21:46:31 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52d857f..ec2b407 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ AsyncBuilder( ) ``` -To avoid rebuilds see ## InitBuilder +To avoid rebuilds see #InitBuilder Note that you cannot provide both a stream and future. From fdb6224e83601b2a2aa7fae9a8c4d141b086f49d Mon Sep 17 00:00:00 2001 From: Hunter Peress <772917+h-unterp@users.noreply.github.com> Date: Tue, 13 Sep 2022 21:47:11 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec2b407..4516aeb 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ AsyncBuilder( ) ``` -To avoid rebuilds see #InitBuilder +To avoid rebuilds see [InitBuilder](#InitBuilder) Note that you cannot provide both a stream and future.