$getProperty method
Get a property by identifier on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'controller':
return $value.controller == null
? const $null()
: $TextEditingController.wrap($value.controller!);
case 'focusNode':
return $value.focusNode == null
? const $null()
: $FocusNode.wrap($value.focusNode!);
case 'keyboardType':
return $TextInputType.wrap($value.keyboardType);
case 'textInputAction':
return $value.textInputAction == null
? const $null()
: $TextInputAction.wrap($value.textInputAction!);
case 'textCapitalization':
return $TextCapitalization.wrap($value.textCapitalization);
case 'style':
return $value.style == null
? const $null()
: $TextStyle.wrap($value.style!);
case 'textDirection':
return $value.textDirection == null
? const $null()
: $TextDirection.wrap($value.textDirection!);
case 'autofocus':
return $bool($value.autofocus);
case 'statesController':
return $value.statesController == null
? const $null()
: $WidgetStatesController.wrap($value.statesController!);
case 'obscuringCharacter':
return $String($value.obscuringCharacter);
case 'obscureText':
return $bool($value.obscureText);
case 'autocorrect':
return $value.autocorrect == null
? const $null()
: $bool($value.autocorrect!);
case 'enableSuggestions':
return $bool($value.enableSuggestions);
case 'maxLines':
return $value.maxLines == null ? const $null() : $int($value.maxLines!);
case 'minLines':
return $value.minLines == null ? const $null() : $int($value.minLines!);
case 'expands':
return $bool($value.expands);
case 'readOnly':
return $bool($value.readOnly);
case 'showCursor':
return $value.showCursor == null
? const $null()
: $bool($value.showCursor!);
case 'maxLength':
return $value.maxLength == null
? const $null()
: $int($value.maxLength!);
case 'enabled':
return $value.enabled == null ? const $null() : $bool($value.enabled!);
case 'ignorePointers':
return $value.ignorePointers == null
? const $null()
: $bool($value.ignorePointers!);
case 'cursorWidth':
return $double($value.cursorWidth);
case 'cursorHeight':
return $value.cursorHeight == null
? const $null()
: $double($value.cursorHeight!);
case 'cursorRadius':
return $value.cursorRadius == null
? const $null()
: $Radius.wrap($value.cursorRadius!);
case 'cursorOpacityAnimates':
return $value.cursorOpacityAnimates == null
? const $null()
: $bool($value.cursorOpacityAnimates!);
case 'cursorColor':
return $value.cursorColor == null
? const $null()
: $Color.wrap($value.cursorColor!);
case 'cursorErrorColor':
return $value.cursorErrorColor == null
? const $null()
: $Color.wrap($value.cursorErrorColor!);
case 'scrollPadding':
return $EdgeInsets.wrap($value.scrollPadding);
case 'enableInteractiveSelection':
return $bool($value.enableInteractiveSelection);
case 'selectAllOnFocus':
return $value.selectAllOnFocus == null
? const $null()
: $bool($value.selectAllOnFocus!);
case 'selectionEnabled':
return $bool($value.selectionEnabled);
case 'onTapAlwaysCalled':
return $bool($value.onTapAlwaysCalled);
case 'scrollController':
return $value.scrollController == null
? const $null()
: $ScrollController.wrap($value.scrollController!);
case 'clipBehavior':
return $Clip.wrap($value.clipBehavior);
case 'restorationId':
return $value.restorationId == null
? const $null()
: $String($value.restorationId!);
case 'scribbleEnabled':
return $bool($value.scribbleEnabled);
case 'stylusHandwritingEnabled':
return $bool($value.stylusHandwritingEnabled);
case 'enableIMEPersonalizedLearning':
return $bool($value.enableIMEPersonalizedLearning);
case 'canRequestFocus':
return $bool($value.canRequestFocus);
case 'createState':
return __createState;
case 'debugFillProperties':
return __debugFillProperties;
}
throw UnimplementedError(
'property $identifier not generated for TextField');
}