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
Jonny Borges
2020-06-27 21:26:04 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-06-27 21:26:04 -0300
Commit
f33095c457107ddbeebe43665757f780e8ba1245
f33095c4
1 parent
6009b0ad
Delete extension_instance.dart
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
lib/src/extension_instance.dart
lib/src/extension_instance.dart
deleted
100644 → 0
View file @
6009b0a
import
'get_instance.dart'
;
import
'get_main.dart'
;
import
'typedefs/typedefs.dart'
;
extension
Storage
on
GetImpl
{
void
lazyPut
<
S
>(
FcBuilderFunc
builder
,
{
String
tag
})
{
return
GetInstance
().
lazyPut
<
S
>(
builder
,
tag:
tag
);
}
Future
<
S
>
putAsync
<
S
>(
FcBuilderFuncAsync
<
S
>
builder
,
{
String
tag
,
bool
permanent
=
false
})
async
=>
GetInstance
().
putAsync
<
S
>(
builder
,
tag:
tag
,
permanent:
permanent
);
S
find
<
S
>({
String
tag
,
FcBuilderFunc
<
S
>
instance
})
=>
GetInstance
().
find
<
S
>(
tag:
tag
,
instance:
instance
);
S
put
<
S
>(
S
dependency
,
{
String
tag
,
bool
permanent
=
false
,
bool
overrideAbstract
=
false
,
FcBuilderFunc
<
S
>
builder
})
=>
GetInstance
().
put
<
S
>(
dependency
,
tag:
tag
,
permanent:
permanent
,
overrideAbstract:
overrideAbstract
,
builder:
builder
);
bool
reset
({
bool
clearFactory
=
true
,
bool
clearRouteBindings
=
true
})
=>
GetInstance
().
reset
(
clearFactory:
clearFactory
,
clearRouteBindings:
clearRouteBindings
);
/// Delete class instance on [S] and clean memory
Future
<
bool
>
delete
<
S
>({
String
tag
,
String
key
})
async
=>
GetInstance
().
delete
<
S
>(
tag:
tag
,
key:
key
);
bool
isRegistred
<
S
>({
String
tag
})
=>
GetInstance
().
isRegistred
<
S
>(
tag:
tag
);
}
Please
register
or
login
to post a comment