parseString static method
Tries to parse a String.
- Returns
def
ifvalue
isnull
.
Implementation
static String? parseString(Object? value, [String? def]) {
if (value == null) return def;
if (value is String) {
return value;
} else {
return '$value';
}
}