@@ -118,13 +118,15 @@ mixin SignalsMixin<T extends StatefulWidget> on State<T> {
118118 String ? debugLabel,
119119 bool lazy = true ,
120120 }) {
121- return _bindLocal (computedFrom <S , A >(
122- signals,
123- fn,
124- initialValue: initialValue,
125- debugLabel: debugLabel,
126- lazy: lazy,
127- ),);
121+ return _bindLocal (
122+ computedFrom <S , A >(
123+ signals,
124+ fn,
125+ initialValue: initialValue,
126+ debugLabel: debugLabel,
127+ lazy: lazy,
128+ ),
129+ );
128130 }
129131
130132 /// Async Computed is syntax sugar around [FutureSignal] .
@@ -149,13 +151,15 @@ mixin SignalsMixin<T extends StatefulWidget> on State<T> {
149151 List <ReadonlySignal <dynamic >> dependencies = const [],
150152 bool lazy = true ,
151153 }) {
152- return _bindLocal (computedAsync <S >(
153- fn,
154- dependencies: dependencies,
155- initialValue: initialValue,
156- debugLabel: debugLabel,
157- lazy: lazy,
158- ),);
154+ return _bindLocal (
155+ computedAsync <S >(
156+ fn,
157+ dependencies: dependencies,
158+ initialValue: initialValue,
159+ debugLabel: debugLabel,
160+ lazy: lazy,
161+ ),
162+ );
159163 }
160164
161165 /// Create a signal from a future
@@ -166,13 +170,15 @@ mixin SignalsMixin<T extends StatefulWidget> on State<T> {
166170 List <ReadonlySignal <dynamic >> dependencies = const [],
167171 bool lazy = true ,
168172 }) {
169- return _bindLocal (futureSignal <S >(
170- fn,
171- initialValue: initialValue,
172- debugLabel: debugLabel,
173- dependencies: dependencies,
174- lazy: lazy,
175- ),);
173+ return _bindLocal (
174+ futureSignal <S >(
175+ fn,
176+ initialValue: initialValue,
177+ debugLabel: debugLabel,
178+ dependencies: dependencies,
179+ lazy: lazy,
180+ ),
181+ );
176182 }
177183
178184 /// Create a signals from a stream
@@ -185,92 +191,108 @@ mixin SignalsMixin<T extends StatefulWidget> on State<T> {
185191 bool ? cancelOnError,
186192 bool lazy = true ,
187193 }) {
188- return _bindLocal (streamSignal <S >(
189- callback,
190- initialValue: initialValue,
191- debugLabel: debugLabel,
192- dependencies: dependencies,
193- onDone: onDone,
194- cancelOnError: cancelOnError,
195- lazy: lazy,
196- ),);
194+ return _bindLocal (
195+ streamSignal <S >(
196+ callback,
197+ initialValue: initialValue,
198+ debugLabel: debugLabel,
199+ dependencies: dependencies,
200+ onDone: onDone,
201+ cancelOnError: cancelOnError,
202+ lazy: lazy,
203+ ),
204+ );
197205 }
198206
199207 /// Create a signal holding an async value
200208 AsyncSignal <S > createAsyncSignal <S >(
201209 AsyncState <S > value, {
202210 String ? debugLabel,
203211 }) {
204- return _bindLocal (asyncSignal <S >(
205- value,
206- debugLabel: debugLabel,
207- ),);
212+ return _bindLocal (
213+ asyncSignal <S >(
214+ value,
215+ debugLabel: debugLabel,
216+ ),
217+ );
208218 }
209219
210220 /// Create a signal<T> and watch for changes
211221 FlutterSignal <V > createSignal <V >(
212222 V val, {
213223 String ? debugLabel,
214224 }) {
215- return _bindLocal (signal <V >(
216- val,
217- debugLabel: debugLabel,
218- ),);
225+ return _bindLocal (
226+ signal <V >(
227+ val,
228+ debugLabel: debugLabel,
229+ ),
230+ );
219231 }
220232
221233 /// Create a [ListSignal] <T> and watch for changes
222234 ListSignal <V > createListSignal <V >(
223235 List <V > list, {
224236 String ? debugLabel,
225237 }) {
226- return _bindLocal (ListSignal <V >(
227- list,
228- debugLabel: debugLabel,
229- ),);
238+ return _bindLocal (
239+ ListSignal <V >(
240+ list,
241+ debugLabel: debugLabel,
242+ ),
243+ );
230244 }
231245
232246 /// Create a [SetSignal] <T> and watch for changes
233247 SetSignal <V > createSetSignal <V >(
234248 Set <V > set , {
235249 String ? debugLabel,
236250 }) {
237- return _bindLocal (SetSignal <V >(
238- set ,
239- debugLabel: debugLabel,
240- ),);
251+ return _bindLocal (
252+ SetSignal <V >(
253+ set ,
254+ debugLabel: debugLabel,
255+ ),
256+ );
241257 }
242258
243259 /// Create a [QueueSignal] <T> and watch for changes
244260 QueueSignal <V > createQueueSignal <V >(
245261 Queue <V > queue, {
246262 String ? debugLabel,
247263 }) {
248- return _bindLocal (QueueSignal <V >(
249- queue,
250- debugLabel: debugLabel,
251- ),);
264+ return _bindLocal (
265+ QueueSignal <V >(
266+ queue,
267+ debugLabel: debugLabel,
268+ ),
269+ );
252270 }
253271
254272 /// Create a [MapSignal] <T> and watch for changes
255273 MapSignal <K , V > createMapSignal <K , V >(
256274 Map <K , V > value, {
257275 String ? debugLabel,
258276 }) {
259- return _bindLocal (MapSignal <K , V >(
260- value,
261- debugLabel: debugLabel,
262- ),);
277+ return _bindLocal (
278+ MapSignal <K , V >(
279+ value,
280+ debugLabel: debugLabel,
281+ ),
282+ );
263283 }
264284
265285 /// Create a computed<T> and watch for changes
266286 FlutterComputed <V > createComputed <V >(
267287 V Function () cb, {
268288 String ? debugLabel,
269289 }) {
270- return _bindLocal (computed <V >(
271- cb,
272- debugLabel: debugLabel,
273- ),);
290+ return _bindLocal (
291+ computed <V >(
292+ cb,
293+ debugLabel: debugLabel,
294+ ),
295+ );
274296 }
275297
276298 S _bindLocal <V , S extends ReadonlySignal <V >>(S val) {
0 commit comments