checkValid method
- @mustCallSuper
- T instance
Implementation
@mustCallSuper
void checkValid(T instance) {
if (!isValid(instance)) {
throw newInvalidValueError(
kind: this,
instance: instance,
);
}
}
@mustCallSuper
void checkValid(T instance) {
if (!isValid(instance)) {
throw newInvalidValueError(
kind: this,
instance: instance,
);
}
}