setBindingProperty method
void
setBindingProperty(
- String key,
- dynamic val
)
override
Implementation
@override
void setBindingProperty(String key, val) {
switch (key) {
case 'width': width = castToType<num>(val).toInt(); break;
case 'height': height = castToType<num>(val).toInt(); break;
case 'size': size = castToType<num>(val).toInt(); break;
case 'value': value = castToType<String?>(val); break;
case 'defaultValue': defaultValue = castToType<String?>(val); break;
case 'accept': accept = castToType<String>(val); break;
case 'autocomplete': autocomplete = castToType<String>(val); break;
case 'autofocus': autofocus = castToType<bool>(val); break;
case 'required': required = castToType<bool>(val); break;
case 'readonly': readOnly = castToType<bool>(val); break;
case 'pattern': pattern = castToType<String>(val); break;
case 'step': step = castToType<String>(val); break;
case 'name': name = castToType<String>(val); break;
case 'multiple': multiple = castToType<bool>(val); break;
case 'checked': checked = castToType<bool>(val); break;
case 'disabled': disabled = castToType<bool>(val); break;
case 'min': min = castToType<String>(val); break;
case 'max': max = castToType<String>(val); break;
case 'minLength': minLength = castToType<num>(val).toInt(); break;
case 'maxLength': maxLength = castToType<num>(val).toInt(); break;
case 'placeholder': placeholder = castToType<String>(val); break;
case 'type': type = castToType<String>(val); break;
case 'inputMode': inputMode = castToType<String>(val); break;
default: super.setBindingProperty(key, value);
}
}