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
Nipodemos
2020-09-13 23:50:25 -0300
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
d7732310fc94d442ada6a540c166dad552bf4e0b
d7732310
2 parents
2f6affa9
8f8754ea
Merge branch 'master' of
https://github.com/jonataslaw/getx
into more_tests
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
lib/src/utils/regex/get_utils.dart
lib/src/utils/regex/get_utils.dart
View file @
d773231
...
...
@@ -14,14 +14,9 @@ class GetUtils {
static
bool
isNullOrBlank
(
dynamic
s
)
{
if
(
isNull
(
s
))
return
true
;
switch
(
s
.
runtimeType
as
Type
)
{
case
String
:
case
List:
case
Map:
case
Set
:
case
Iterable:
if
(
s
is
String
||
s
is
List
||
s
is
Map
||
s
is
Set
||
s
is
Iterable
)
{
return
s
.
isEmpty
as
bool
;
default
:
}
else
{
return
s
.
toString
()
==
'null'
||
s
.
toString
().
trim
().
isEmpty
;
}
}
...
...
Please
register
or
login
to post a comment