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
Nicolas Lopez
2020-09-15 11:19:10 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
04c944aa674dd0a5d3eea20941ea1743f3a39c67
04c944aa
1 parent
76fea432
ErrorHandler
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
lib/src/utils/extensions/dynamic_extensions.dart
lib/src/utils/regex/get_utils.dart
lib/src/utils/extensions/dynamic_extensions.dart
View file @
04c944a
...
...
@@ -11,7 +11,7 @@ extension GetDynamicUtils on dynamic {
void
printError
(
{
String
info
=
''
,
Function
logFunction
=
GetUtils
.
printFunction
})
=>
logFunction
(
'Error:
${this.runtimeType}
'
,
this
,
info
);
logFunction
(
'Error:
${this.runtimeType}
'
,
this
,
info
,
isError:
true
);
void
printInfo
(
{
String
info
=
''
,
...
...
lib/src/utils/regex/get_utils.dart
View file @
04c944a
...
...
@@ -487,6 +487,7 @@ class GetUtils {
return
(
value
==
null
)
?
false
:
RegExp
(
pattern
).
hasMatch
(
value
);
}
static
void
printFunction
(
String
prefix
,
dynamic
value
,
String
info
)
=>
GetConfig
.
log
(
'
$prefix
$value
$info
'
.
trim
());
static
void
printFunction
(
String
prefix
,
dynamic
value
,
String
info
,
{
bool
isError
=
false
})
=>
GetConfig
.
log
(
'
$prefix
$value
$info
'
.
trim
(),
isError:
isError
);
}
...
...
Please
register
or
login
to post a comment