elevation method

Widget elevation(
  1. double elevation, {
  2. Key? key,
  3. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  4. Color shadowColor = const Color(0xFF000000),
})

阴影

Implementation

Widget elevation(
  double elevation, {
  Key? key,
  BorderRadiusGeometry borderRadius = BorderRadius.zero,
  Color shadowColor = const Color(0xFF000000),
}) =>
    Material(
      key: key,
      color: Colors.transparent,
      elevation: elevation,
      borderRadius: borderRadius,
      shadowColor: shadowColor,
      child: this,
    );