Factory constructor

const Factory(
  1. Type type, {
  2. Type? params,
})

Implementation

const Factory(this.type, {this.params});