equalsDart function Null safety
- String source,
- [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
.
Implementation
Matcher equalsDart(
String source, [
DartEmitter? emitter,
]) =>
EqualsDart._(EqualsDart._format(source), emitter ?? DartEmitter());