$getProperty method

  1. @override
$Value? $getProperty(
  1. Runtime runtime,
  2. String identifier
)

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'focusNode':
      return $value.focusNode == null
          ? const $null()
          : $FocusNode.wrap($value.focusNode!);
    case 'optionsViewOpenDirection':
      return $OptionsViewOpenDirection.wrap($value.optionsViewOpenDirection);
    case 'optionsMaxHeight':
      return $double($value.optionsMaxHeight);
    case 'textEditingController':
      return $value.textEditingController == null
          ? const $null()
          : $TextEditingController.wrap($value.textEditingController!);
    case 'initialValue':
      return $value.initialValue == null
          ? const $null()
          : $TextEditingValue.wrap($value.initialValue!);
    case 'build':
      return __build;
  }
  throw UnimplementedError(
      'property $identifier not generated for Autocomplete');
}