toText method
Converts the artifact to a text representation.
Parameters:
- onChar: The character to use for 'on' pixels (default: '#').
- forCode: Whether the output is intended for code representation (default: false).
Returns: A string representation of the artifact.
Implementation
String toText({
final String onChar = '#',
final bool forCode = false,
}) {
return _matrix.gridToString(
forCode: forCode,
onChar: onChar,
);
}