Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Frank Moreno
2020-10-17 12:45:41 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c01d91328a6a094f767ad96f6c7096895528c739
c01d9132
1 parent
a69dd814
mustCallSuper in GetLifeCycle methods
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
lib/get_instance/src/lifecycle.dart
lib/get_instance/src/lifecycle.dart
View file @
c01d913
...
...
@@ -48,6 +48,7 @@ mixin GetLifeCycle {
/// Called 1 frame after onInit(). It is the perfect place to enter
/// navigation events, like snackbar, dialogs, or a new route, or
/// async request.
@mustCallSuper
void
onReady
()
{}
/// Called before [onDelete] method. [onClose] might be used to
...
...
@@ -56,6 +57,7 @@ mixin GetLifeCycle {
/// Or dispose objects that can potentially create some memory leaks,
/// like TextEditingControllers, AnimationControllers.
/// Might be useful as well to persist some data on disk.
@mustCallSuper
void
onClose
()
{}
bool
_initialized
=
false
;
...
...
Please
register
or
login
to post a comment