toString method

  1. @override
String toString()
override

Human-readable string representation for debugging

Example output: "GridCellx=5, y=3"

Implementation

@override
String toString() => 'GridCell[x=$x, y=$y]';