toString method

  1. @override
String toString()
override

Serialize as String.

Implementation

@override
String toString () {
  final encoder = JsonEncoder.withIndent(List.filled(indent ?? 2, ' ').join());
  return '```$_language\n' + encoder.convert(_code) + '```';
}