$getProperty method
Get a property by identifier on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'initialText':
final _initialText = $value.initialText;
return _initialText == null ? const $null() : $String(_initialText);
case 'hintText':
final _hintText = $value.hintText;
return _hintText == null ? const $null() : $String(_hintText);
case 'obscureText':
final _obscureText = $value.obscureText;
return $bool(_obscureText);
case 'validator':
final _validator = $value.validator;
return _validator == null
? const $null()
: $Function((runtime, target, args) {
final funcResult = _validator(args[0]?.$value);
return funcResult == null ? const $null() : $String(funcResult);
});
case 'keyboardType':
final _keyboardType = $value.keyboardType;
return _keyboardType == null
? const $null()
: runtime.wrapAlways(_keyboardType);
case 'textCapitalization':
final _textCapitalization = $value.textCapitalization;
return runtime.wrapAlways(_textCapitalization);
case 'prefixText':
final _prefixText = $value.prefixText;
return _prefixText == null ? const $null() : $String(_prefixText);
case 'suffixText':
final _suffixText = $value.suffixText;
return _suffixText == null ? const $null() : $String(_suffixText);
case 'minLines':
final _minLines = $value.minLines;
return _minLines == null ? const $null() : $int(_minLines);
case 'maxLines':
final _maxLines = $value.maxLines;
return $int(_maxLines);
case 'maxLength':
final _maxLength = $value.maxLength;
return _maxLength == null ? const $null() : $int(_maxLength);
case 'autocorrect':
final _autocorrect = $value.autocorrect;
return $bool(_autocorrect);
case 'spellCheckConfiguration':
final _spellCheckConfiguration = $value.spellCheckConfiguration;
return _spellCheckConfiguration == null
? const $null()
: runtime.wrapAlways(_spellCheckConfiguration);
}
return _superclass.$getProperty(runtime, identifier);
}