isA method

bool isA(
  1. HTType? other
)

Check wether value of this HTType can be assigned to other HTType.

Implementation

bool isA(HTType? other) {
  if (other == null) return true;

  if (id != other.id) return false;

  return true;
}