checkInstance method
Implementation
void checkInstance(Object? value) {
if (value is! T) {
throw ArgumentError.value(value, 'value', 'Not an instance of $T');
}
}
void checkInstance(Object? value) {
if (value is! T) {
throw ArgumentError.value(value, 'value', 'Not an instance of $T');
}
}