toDebugString method

  1. @override
String toDebugString()

Returns a string representation of this object, suitable for debugging.

The returned string may contain newlines.

Implementation

@override
String toDebugString() {
  // ignore: noop_primitive_operations
  return ''
      'DeployedUnit <$card: '
      '${exhausted ? 'exhausted' : 'ready'}, '
      '$damage damage, ${upgrades.length} upgrades>';
}