toDebugString method

  1. @override
String toDebugString()
override

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

The returned string may contain newlines.

Implementation

@override
String toDebugString() {
  if (isToken) {
    final orderInSet = this.orderInSet.toString().padLeft(2, '0');
    return '$Card <${cardSet.abbreviation}T$orderInSet: $name>}';
  }
  return super.toDebugString();
}