JsonDropdownButtonFormFieldBuilder.fromModel constructor

JsonDropdownButtonFormFieldBuilder.fromModel(
  1. JsonDropdownButtonFormFieldBuilderModel model
)

Constructor to build the widget via code rather than JSON. This is used to be able to encode widgets into JSON to help with the JSON generation. It can also be used to more easily debug widgets that are not working as expected.

Implementation

factory JsonDropdownButtonFormFieldBuilder.fromModel(
  JsonDropdownButtonFormFieldBuilderModel model,
) =>
    fromDynamic(model.toJson());