buildMaterial method

  1. @protected
Widget buildMaterial(
  1. BuildParameters params
)

Implementation

@protected
Widget buildMaterial(BuildParameters params) {
  return Material(
    key: properties.getKey(params.id),
    type: params.buildProp("type") ?? MaterialType.canvas,
    shape: params.buildProp("shape"),
    borderRadius: params.buildProp("borderRadius"),
    elevation: parseDouble(params.props["elevation"]),
    color: tryParseColor(params.props["color"]),
    shadowColor: tryParseColor(params.props["shadowColor"]),
    child: builder.tryBuildWidget(params.context, params.widgets["child"],
        params.state, params.parentContext),
  );
}