$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 'value':
      return $value.value == null ? const $null() : $bool($value.value!);
    case 'activeColor':
      return $value.activeColor == null
          ? const $null()
          : $Color.wrap($value.activeColor!);
    case 'fillColor':
      return $value.fillColor == null
          ? const $null()
          : $WidgetStateProperty.wrap($value.fillColor!);
    case 'checkColor':
      return $value.checkColor == null
          ? const $null()
          : $Color.wrap($value.checkColor!);
    case 'tristate':
      return $bool($value.tristate);
    case 'materialTapTargetSize':
      return $value.materialTapTargetSize == null
          ? const $null()
          : $MaterialTapTargetSize.wrap($value.materialTapTargetSize!);
    case 'visualDensity':
      return $value.visualDensity == null
          ? const $null()
          : $VisualDensity.wrap($value.visualDensity!);
    case 'focusColor':
      return $value.focusColor == null
          ? const $null()
          : $Color.wrap($value.focusColor!);
    case 'hoverColor':
      return $value.hoverColor == null
          ? const $null()
          : $Color.wrap($value.hoverColor!);
    case 'overlayColor':
      return $value.overlayColor == null
          ? const $null()
          : $WidgetStateProperty.wrap($value.overlayColor!);
    case 'splashRadius':
      return $value.splashRadius == null
          ? const $null()
          : $double($value.splashRadius!);
    case 'focusNode':
      return $value.focusNode == null
          ? const $null()
          : $FocusNode.wrap($value.focusNode!);
    case 'autofocus':
      return $bool($value.autofocus);
    case 'side':
      return $value.side == null
          ? const $null()
          : $BorderSide.wrap($value.side!);
    case 'isError':
      return $bool($value.isError);
    case 'semanticLabel':
      return $value.semanticLabel == null
          ? const $null()
          : $String($value.semanticLabel!);
    case 'createState':
      return __createState;
  }
  throw UnimplementedError('property $identifier not generated for Checkbox');
}