isAnyType<T> static method

bool isAnyType<T>([
  1. Type? type
])

Returns true if type is Object or dynamic.

Implementation

static bool isAnyType<T>([Type? type]) {
  type ??= T;
  return TypeInfo.from(type).isAnyType;
}