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:16 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a69dd81464146cfdcf4169a8294d3eef193ad52a
a69dd814
1 parent
9880621e
exporting and using ValueUpdater
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
lib/get_core/get_core.dart
lib/get_instance/src/lifecycle.dart
lib/get_core/get_core.dart
View file @
a69dd81
...
...
@@ -5,3 +5,5 @@ export 'src/get_main.dart';
export
'src/log.dart'
;
export
'src/smart_management.dart'
;
export
'src/typedefs.dart'
;
...
...
lib/get_instance/src/lifecycle.dart
View file @
a69dd81
import
'package:flutter/material.dart'
;
import
'package:meta/meta.dart'
;
import
'../../get_core/get_core.dart'
;
/// Special callable class to keep the contract of a regular method, and avoid
/// overrides if you extend the class that uses it, as Dart has no final
/// methods.
/// Used in [DisposableInterface] to avoid the danger of overriding onStart.
class
_InternalFinalCallback
<
T
>
{
Value
Get
ter
<
T
>
_callback
;
Value
Upda
ter
<
T
>
_callback
;
_InternalFinalCallback
({
Value
Get
ter
<
T
>
callback
})
:
_callback
=
callback
;
_InternalFinalCallback
({
Value
Upda
ter
<
T
>
callback
})
:
_callback
=
callback
;
T
call
()
=>
_callback
.
call
();
}
...
...
Please
register
or
login
to post a comment