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
mrkost
2020-09-10 23:11:08 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1988172590d5b18a383c593838d8ad437405c65a
19881725
1 parent
d11200bd
fix isNullOrBlank function
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 @
1988172
...
...
@@ -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