Tells whether the instance is valid.
@nonVirtual bool isValidDynamic(Object? instance) { return instance is T && isValid(instance); }