$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 'icon':
      return $value.icon == null ? const $null() : $Widget.wrap($value.icon!);
    case 'iconColor':
      return $value.iconColor == null
          ? const $null()
          : $Color.wrap($value.iconColor!);
    case 'iconPadding':
      return $value.iconPadding == null
          ? const $null()
          : $EdgeInsetsGeometry.wrap($value.iconPadding!);
    case 'title':
      return $value.title == null
          ? const $null()
          : $Widget.wrap($value.title!);
    case 'titlePadding':
      return $value.titlePadding == null
          ? const $null()
          : $EdgeInsetsGeometry.wrap($value.titlePadding!);
    case 'titleTextStyle':
      return $value.titleTextStyle == null
          ? const $null()
          : $TextStyle.wrap($value.titleTextStyle!);
    case 'content':
      return $value.content == null
          ? const $null()
          : $Widget.wrap($value.content!);
    case 'contentPadding':
      return $value.contentPadding == null
          ? const $null()
          : $EdgeInsetsGeometry.wrap($value.contentPadding!);
    case 'contentTextStyle':
      return $value.contentTextStyle == null
          ? const $null()
          : $TextStyle.wrap($value.contentTextStyle!);
    case 'actionsPadding':
      return $value.actionsPadding == null
          ? const $null()
          : $EdgeInsetsGeometry.wrap($value.actionsPadding!);
    case 'actionsAlignment':
      return $value.actionsAlignment == null
          ? const $null()
          : $MainAxisAlignment.wrap($value.actionsAlignment!);
    case 'actionsOverflowDirection':
      return $value.actionsOverflowDirection == null
          ? const $null()
          : $VerticalDirection.wrap($value.actionsOverflowDirection!);
    case 'actionsOverflowButtonSpacing':
      return $value.actionsOverflowButtonSpacing == null
          ? const $null()
          : $double($value.actionsOverflowButtonSpacing!);
    case 'buttonPadding':
      return $value.buttonPadding == null
          ? const $null()
          : $EdgeInsetsGeometry.wrap($value.buttonPadding!);
    case 'backgroundColor':
      return $value.backgroundColor == null
          ? const $null()
          : $Color.wrap($value.backgroundColor!);
    case 'elevation':
      return $value.elevation == null
          ? const $null()
          : $double($value.elevation!);
    case 'shadowColor':
      return $value.shadowColor == null
          ? const $null()
          : $Color.wrap($value.shadowColor!);
    case 'surfaceTintColor':
      return $value.surfaceTintColor == null
          ? const $null()
          : $Color.wrap($value.surfaceTintColor!);
    case 'semanticLabel':
      return $value.semanticLabel == null
          ? const $null()
          : $String($value.semanticLabel!);
    case 'insetPadding':
      return $value.insetPadding == null
          ? const $null()
          : $EdgeInsets.wrap($value.insetPadding!);
    case 'clipBehavior':
      return $value.clipBehavior == null
          ? const $null()
          : $Clip.wrap($value.clipBehavior!);
    case 'shape':
      return $value.shape == null
          ? const $null()
          : $ShapeBorder.wrap($value.shape!);
    case 'alignment':
      return $value.alignment == null
          ? const $null()
          : $AlignmentGeometry.wrap($value.alignment!);
    case 'constraints':
      return $value.constraints == null
          ? const $null()
          : $BoxConstraints.wrap($value.constraints!);
    case 'scrollable':
      return $bool($value.scrollable);
    case 'build':
      return __build;
  }
  throw UnimplementedError(
      'property $identifier not generated for AlertDialog');
}