build method

  1. @override
dynamic build(
  1. dynamic context
)

Implementation

@override
Widget build(BuildContext context) {
  return GestureDetector(
    onTap: () => onPressed?.call(),
    child: Container(
      decoration: decoration ??
          context.theme.getCardDecoration(
            color: color,
            borderRadius: borderRadius,
            elevation: elevation,
            offset: offset,
            shape: shape,
          ),
      width: width,
      height: height,
      padding: padding,
      margin: margin,
      child: child,
    ),
  );
}