isCastedSet method
Returns true
if o
is a Set<E>
where E
is arguments0 T
.
E
should be valid. See isValidGenericType.- This TypeInfo should be a Set. See isSet.
Implementation
bool isCastedSet(Object? o) {
if (!isSet || o is! Set) return false;
var arg0 = arguments0;
return arg0 != null &&
arg0.isValidGenericType &&
arg0.callCasted(<E>() => o is Set<E>);
}