createModel method
Creates the model for this step.
Implementation
@override
Model createModel(Map<String, dynamic> answers) {
final model = TextInputModel(
prompt: prompt,
placeholder: placeholder ?? '',
validate: validate,
);
if (defaultValue != null) {
model.value = defaultValue!;
}
model.focus();
return model;
}