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