print function Null safety
- Object? object
Prints a string representation of the object to the console.
Implementation
void print(Object? object) {
String line = object.toString();
var toZone = printToZone;
if (toZone == null) {
printToConsole(line);
} else {
toZone(line);
}
}