toString()
A method every object has that turns it into text, and which print uses. Writing your own with @override changes how the object prints.
A method every object has that turns it into text, and which print uses. Writing your own with @override changes how the object prints.