setters method
Implementation
@override
Map<String, Function> setters() {
var setters = _controller.textPlaceholderSetters;
setters.addAll({
'initialValue': (value) => _controller.value ??= Utils.getDate(value),
'firstDate': (value) => _controller.firstDate = Utils.getDate(value),
'lastDate': (value) => _controller.lastDate = Utils.getDate(value),
'showClearIcon': (shouldShow) =>
_controller.showClearIcon = Utils.getBool(shouldShow, fallback: true),
'showCalendarIcon': (shouldShow) =>
_controller.showCalendarIcon = Utils.optionalBool(shouldShow),
'onChange': (definition) => _controller.onChange =
EnsembleAction.from(definition, initiator: this),
'textStyle': (value) => _controller.textStyle = Utils.getTextStyle(value),
});
return setters;
}