Utils class

class utility for value checking

Constructors

Utils()

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

replaceBool(bool? value, {bool defaultValue = false}) → bool
coalesce bool?
replaceDouble(double? value, {double defaultValue = 0}) → double
coalesce double?
replaceInt(int? value, {int defaultValue = 0}) → int
coalesce int?
replaceString(String? text, {String defaultValue = ""}) → String
colesce string?
stringValue(dynamic data) → String
convert dynamic to string