init<T, S, U, M, C extends InputConfig<S, U> , I extends Input<T, S, U, C> > static method
I
init<T, S, U, M, C extends InputConfig<S, U> , I extends Input<T, S, U, C> >(
- C config
Implementation
static I init<T, S, U, M, C extends InputConfig<S, U>, I extends Input<T, S, U, C>>(C config) {
return switch (config) {
ListConfig config => ListInput.init(config),
FormConfig config => FormInput.init(config),
SingleConfig config => SingleInput.init(config),
} as I;
}