StringUtil class
String Helper Utilities
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
containsIgnoreCase(
String? s, String? needle) → bool -
Returns
true
ifs
contains theneedle
irrespective of case -
ensureEndsWith(
String s, String suffix) → String -
Returns a new String from
s
which ends with the suppliedsuffix
. Ifs
already ends withsuffix
,s
is returned unchanged. -
equalsIgnoreCase(
String? left, String? right) → bool -
Returns
true
ifleft
is equal toright
irrespective of case -
isBlank(
String? v) → bool -
Returns
true
if the provided String valuev
isnull
or blank (whitespace only) -
isNotBlank(
String? v) → bool -
Returns
true
if the provided String valuev
is notnull
and is not blank (whitespaces)