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 if s contains the needle irrespective of case
ensureEndsWith(String s, String suffix) String
Returns a new String from s which ends with the supplied suffix. If s already ends with suffix, s is returned unchanged.
equalsIgnoreCase(String? left, String? right) bool
Returns true if left is equal to right irrespective of case
isBlank(String? v) bool
Returns true if the provided String value v is null or blank (whitespace only)
isNotBlank(String? v) bool
Returns true if the provided String value v is not null and is not blank (whitespaces)