Dart API ReferenceunittestStepValidator

StepValidator typedef

StepValidators are used by stepwiseValidate in LogEntryList, which iterates through the list and call the StepValidator function with the log List and position. The StepValidator should return the number of positions to advance upon success, or zero upon failure. When zero is returned an error is reported.

typedef int StepValidator(List<LogEntry> logs, int pos);

typedef int StepValidator(List<LogEntry> logs, int pos) #

typedef int StepValidator(List<LogEntry> logs, int pos);