card method

Widget card({
  1. Color? backgroundColor,
  2. double? elevation,
  3. EdgeInsetsGeometry? margin,
})

Material Card around it. child.card(elevation: 2)

Implementation

Widget card({Color? backgroundColor, double? elevation, EdgeInsetsGeometry? margin}) =>
    Card(clipBehavior: Clip.hardEdge, margin: margin, elevation: elevation, color: backgroundColor, surfaceTintColor: backgroundColor, child: this);