toString function
Implementation
String toString(value, {String defaultValue = ""}) {
if (value == null) return defaultValue;
if (value is String) return value;
if (value is int) return value.toString();
if (value is double) return value.toString();
if (value is bool) return value ? "true" : "false";
return defaultValue;
}