isNullableSubKind method

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

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

Implementation

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