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
arjundevlucid
2022-05-14 18:19:01 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fbdf73f15c03e3bf6298860b20f77e45d360a2eb
fbdf73f1
1 parent
6eb294b9
added documentation to ambiguate
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
lib/get_core/src/typedefs.dart
lib/get_core/src/typedefs.dart
View file @
fbdf73f
typedef
ValueUpdater
<
T
>
=
T
Function
();
/// This allows a value of type T or T?
/// to be treated as a value of type T?.
///
/// We use this so that APIs that have become
/// non-nullable can still be used with `!` and `?`
/// to support older versions of the API as well.
T
?
ambiguate
<
T
>(
T
?
value
)
=>
value
;
...
...
Please
register
or
login
to post a comment