instanceOfAny method
instanceOfAny: Check if any of the types given are of the same (runtimeType) type as this
Implementation
bool instanceOfAny(List<Type> types) {
var runtimeType = this.runtimeType;
return types.any((type) => runtimeType == type);
}