model property

get current state model;

Implementation

@override
E get model => delegate.model;
  1. @override
void model=(FormeCupertinoTextFieldModel model)
inherited

set state model on field

directly set model will lose old model if you want to inherit old model, you can use update model

model is provided by your custom AbstractFieldState, if you no need a model,you can use EmptyStateModel

model is a property variable of AbstractFieldState,used to provide data that determine how to render a field , you can rebuild field easily via call this method and avoid build whole form

model's all properties should be nullable

the model's runtimetype must be a child or same as your custom AbstractFieldState's generic model type

Implementation

@override
set model(E model) => delegate.model = model;