visit method

  1. @override
ConstructorCall visit(
  1. covariant Material widget
)
override

Implementation

@override
ConstructorCall visit(Material widget) {
  return ConstructorCall(
      'Material',
      NotNullMap.from({
        'type': ArgumentEncoders.enumValue(widget.type),
        'elevation': widget.elevation,
        'color': ArgumentEncoders.color(widget.color),
        'shadowColor': ArgumentEncoders.color(widget.shadowColor),
        'surfaceTintColor': ArgumentEncoders.color(widget.surfaceTintColor),
        'textStyle': ArgumentEncoders.textStyle(widget.textStyle),
        'borderRadius': ArgumentEncoders.borderRadius(widget.borderRadius),
        'shape': ArgumentEncoders.shapeBorder(widget.shape),
        'borderOnForeground': widget.borderOnForeground,
        'clipBehavior': widget.clipBehavior,
        'animationDuration':
            ArgumentEncoders.duration(widget.animationDuration),
        'child': ArgumentEncoders.widget(widget.child),
      }));
}