isOfTypeAny method

bool isOfTypeAny(
  1. List<Type> types
)

isOfTypeAny: Checks if the object is of any of the specified (runtimeType) types.

Implementation

bool isOfTypeAny(List<Type> types) {
  var runtimeType = this.runtimeType;
  return types.any((type) => runtimeType == type);
}