addAllWithCasting method
Appends all objects of iterable
to the end of this list with casting to T
Implementation
void addAllWithCasting(Iterable iterable) {
if (_list is List<QudsSerializable>) {
if (jsonCreator != null)
_list.addAll(iterable.map<T>((e) {
var result = jsonCreator!(e)!;
var ser = (result as QudsSerializable);
return ser as T;
}));
} else {
_list.addAll(iterable.cast<T>());
}
if (iterable.length > 0) _fireWatchers();
}