isSubKind method

bool isSubKind(
  1. Kind other, {
  2. bool andNotEqual = true,
})

Tells whether the argument is instance of Kind<T> and dartType values are different.

Implementation

bool isSubKind(Kind other, {bool andNotEqual = true}) {
  return other is Kind<T> &&
      (!andNotEqual || !other.isSubKind(this, andNotEqual: false));
}