File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ import 'package:df_log/df_log.dart';
17
17
void main (List <String > args) async {
18
18
DebugLog .debugOnly = false ;
19
19
await runGenerateScreensApp (args);
20
+ await runGenerateScreenBindingsApp ([]);
20
21
}
Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ final class ___SCREEN_CLASS___Controller extends T___SCREEN_CLASS___Controller {
30
30
31
31
___Q1___
32
32
___I1___
33
- final pCounter = Pod<int>(-1)..bindWith(this);
33
+
34
+ // Bind the Pod to this controller so that it disposes when the controller disposes.
35
+ late final pCounter = Pod<int>(-1)..bindParent(this);
34
36
35
37
//
36
38
//
@@ -49,6 +51,18 @@ final class ___SCREEN_CLASS___Controller extends T___SCREEN_CLASS___Controller {
49
51
this.pCounter.set(0);
50
52
super.initController();
51
53
}
54
+
55
+ //
56
+ //
57
+ //
58
+
59
+ @override
60
+ void dispose() {
61
+ // You can also dispose of Pods manually instead of the bind method
62
+ // illustrated aboce.
63
+ //this.pCounter.dispose();
64
+ super.dispose();
65
+ }
52
66
}
53
67
54
68
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
You can’t perform that action at this time.
0 commit comments