genericMatch method

void genericMatch(
  1. bool matched,
  2. dynamic errorMessage
)

Implementation

void genericMatch(bool matched, errorMessage) {
    if(!matched) {
        this.itState = false;
        this.spacing += "    ";
        this.failedItResult += "${this.spacing}${StackTrace.current.file}:${StackTrace.current.line}:\n";
        this.spacing += "    ";
        this.failedItResult += "${this.spacing} |> ${errorMessage()}\n";
        this.spacing = this.spacing.substring(0, this.spacing.length - 8);
    }
}