Collection constructor

const Collection(
  1. Type collectionType, [
  2. Type? targetType
])

Implementation

const Collection(this.collectionType, [this.targetType]);