OfType<T extends Attachment> method

List<T> OfType<T extends Attachment>()

Implementation

List<T> OfType<T extends Attachment>() {
  return whereType<T>().map((attachment) => attachment).toList();
}