1. override
String toString()

Returns a string representation of this object.

Source

@override
String toString() => "Size(${width?.toStringAsFixed(1)}, ${height?.toStringAsFixed(1)})";