create<T> function

T? create<T>(
  1. Factory<T>? factory
)

Implementation

T? create<T>(Factory<T>? factory) => factory?.call();