isSet property

bool isSet

Determine whether the current instance is a Set.

Can be called in the following ways, { 'k' }.isSet { 'k' }.runtimeType.isSet

Implementation

bool get isSet {
  if (this is Type) {
    return toString().contains('Set');
  } else {
    return this is Set;
  }
}