construct method

dynamic construct(
  1. Type kind
)

Implementation

dynamic construct(Type kind) {
  return _idx[kind]?.f();
}