setters method
Implementation
@override
Map<String, Function> setters() {
Map<String, Function> setters = super.setters();
setters.addAll({
'value': (newValue) {
if (newValue == null) {
textController.text = '';
return;
}
textController.text = Utils.optionalString(newValue)!;
},
'obscureText': (obscure) =>
_controller.obscureText = Utils.optionalBool(obscure),
'dismissOnTapOutside': (value) =>
_controller.dismissOnTapOutside = Utils.optionalBool(value),
'inputType': (type) => _controller.inputType = Utils.optionalString(type),
'mask': (type) => _controller.mask = Utils.optionalString(type),
'onDelayedKeyPress': (function) => _controller.onDelayedKeyPress =
EnsembleAction.from(function, initiator: this),
'delayedKeyPressDuration': (value) =>
_controller.delayedKeyPressDuration =
Utils.getDurationMs(value) ?? _controller.delayedKeyPressDuration,
});
return setters;
}