specToString function

String specToString(
  1. Spec spec
)

Emit a Spec into a String, considering Dart formatting.

Implementation

String specToString(Spec spec) {
  final emitter = DartEmitter();
  return DartFormatter().format(spec.accept(emitter).toString());
}