StringUtils class

Constructors

StringUtils()

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

defaultOnEmpty(String? value, String defaultValue) String
isEmail(String? value) bool
isEmpty(String? s) bool
isNotEmpty(String? s) bool
measure(String text, TextStyle style, {int maxLines = 1, TextDirection direction = TextDirection.ltr, double maxWidth = double.infinity}) Size
measureLongest(List<String> items, TextStyle style, [int? maxItems]) double
pluralize(String s, int length) String
safeGet(String? value, [String? suffix]) String
Gracefully handles null values, and skips the suffix when null
titleCase(String s) String
titleCaseSingle(String s) String