equalsType method

bool equalsType(
  1. TypeInfo? other
)

Returns true if this.type equals to other.type.

Resolves some Type singleton issues with List, Set and Map.

Implementation

bool equalsType(TypeInfo? other) => _typeWrapper == other?._typeWrapper;