Factory<T> constructor Null safety

const Factory<T>(
  1. ValueGetter<T> constructor
)

Creates a new factory.

The constructor parameter must not be null.

Implementation

const Factory(this.constructor) : assert(constructor != null);