OfType<T extends Attachment> method
Implementation
List<T> OfType<T extends Attachment>() {
return this
.where((attachment) => attachment is T)
.map((attachment) => attachment as T)
.toList();
}
List<T> OfType<T extends Attachment>() {
return this
.where((attachment) => attachment is T)
.map((attachment) => attachment as T)
.toList();
}