instanceIsCorrectType method
Tells whether the argument is an instance of the wanted Dart type.
Examples
final kind = StringKind(minLengthInUtf8: 1);
kind.instanceIsCorrectType(3.14); // --> false
kind.instanceIsCorrectType('a'); // --> true
kind.instanceIsCorrectType(''); // --> true, even though it does not match the constraints.
Implementation
@nonVirtual
bool instanceIsCorrectType(Object? value) => value is T;