diff --git a/README.md b/README.md index 63bf7f4..4516aeb 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ AsyncBuilder( ) ``` +To avoid rebuilds see [InitBuilder](#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.