map method

T map(
  1. Album toElement(
    1. Album e
    )
)

Implementation

T map(Album Function(Album e) toElement) {
  return this as T..albums = albums.map(toElement).toList();
}