equalsDart function

Matcher equalsDart(
  1. String source, [
  2. DartEmitter? emitter

Returns a matcher for Spec objects that emit code matching source.

Both source and the result emitted from the compared Spec are formatted with EqualsDart.format. A plain DartEmitter is used by default and may be overridden with emitter.


Matcher equalsDart(
  String source, [
  DartEmitter? emitter,
]) =>
    EqualsDart._(EqualsDart._format(source), emitter ?? DartEmitter());