File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Computed Flutter allows you to interface Computed with Flutter-specific function
14
14
- [ Here's how it works] ( #Hereshowitworks )
15
15
- [ Using Computed with widgets] ( #UsingComputedwithwidgets )
16
16
- [ Using ` Computed[Stateful]Widget ` ] ( #UsingComputedStatefulWidget )
17
- - [ Using ` ComputedFlutterMixin ` ] ( #UsingComputedFlutterMixin )
17
+ - [ Using ` ComputedFlutter[Stateful]Mixin ` ] ( #UsingComputedFlutterStatefulMixin )
18
18
- [ Using ` ComputedBuilder ` ] ( #UsingComputedBuilder )
19
19
- [ Ingesting data sources] ( #Ingestingdatasources )
20
20
- [ Using results of computations] ( #Usingresultsofcomputations )
@@ -62,14 +62,18 @@ class MyWidget extends ComputedWidget {
62
62
}
63
63
```
64
64
65
- ### <a name =' UsingComputedFlutterMixin ' ></a >Using ` ComputedFlutterMixin `
65
+ ### <a name =' UsingComputedFlutterStatefulMixin ' ></a >Using ` ComputedFlutter[Stateful]Mixin `
66
66
67
- If you do not want your widgets to extend ` Computed[Stateful]Widget ` , perhaps for widgets already extending some other class, you can use the mixin :
67
+ If you do not want your widgets to extend ` Computed[Stateful]Widget ` , perhaps for widgets already extending some other class, you can use the mixins :
68
68
69
69
```
70
70
class MyWidget extends MyOtherWidget with ComputedFlutterMixin {
71
71
...
72
72
}
73
+
74
+ class MyStatefulWidget extends MyOtherStatefulWidget with ComputedFlutterStatefulMixin {
75
+ ...
76
+ }
73
77
```
74
78
75
79
### <a name =' UsingComputedBuilder ' ></a >Using ` ComputedBuilder `
You can’t perform that action at this time.
0 commit comments