isSubtypeOf method

  1. @override
bool isSubtypeOf(
  1. RuntimeType other, {
  2. Object? value,
})
override

Checks if this type is a subtype of other.

Implementation

@override
bool isSubtypeOf(RuntimeType other, {Object? value}) {
  // Extension types are subtypes of their representation type
  if (other == this) return true;
  if (representationType != null) {
    return representationType!.isSubtypeOf(other, value: value);
  }
  return false;
}