specToString function
Emit a Spec
into a String, considering Dart formatting.
Implementation
String specToString(Spec spec) {
final emitter = DartEmitter();
return DartFormatter().format(spec.accept(emitter).toString());
}
Emit a Spec
into a String, considering Dart formatting.
String specToString(Spec spec) {
final emitter = DartEmitter();
return DartFormatter().format(spec.accept(emitter).toString());
}