instanceOfAny method

bool instanceOfAny(
  1. List<Type> types
)

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);
}