supports method
Returns true
if this step supports any of the given types
or if this
step has no specific type requirement. Returns false
if this has a type
requirement that the Testable does not support the required type.
Implementation
bool supports(List<TestableType>? types) {
var supported = types?.isNotEmpty != true || type == null;
if (supported != true) {
types!.forEach(
(type) => supported = supported || type == this.type,
);
}
return supported;
}