stringify method
Implementation
String stringify(Object? object) {
if (object == null) return "null";
if (object is num) {
String text = object.toString();
if (text.endsWith(".0")) {
text = text.substring(0, text.length - 2);
}
return text;
}
return object.toString();
}