material method

Widget material({
  1. Key? key,
  2. MaterialType type = MaterialType.canvas,
  3. Duration animationDuration = kThemeAnimationDuration,
  4. bool borderOnForeground = true,
  5. BorderRadiusGeometry? borderRadius,
  6. Clip clipBehavior = Clip.none,
  7. Color? color,
  8. double elevation = 0.0,
  9. Color? shadowColor,
  10. ShapeBorder? shape,
  11. TextStyle? textStyle,
})

Extension method for Material Widget

Implementation

Widget material(
        {Key? key,
        MaterialType type = MaterialType.canvas,
        Duration animationDuration = kThemeAnimationDuration,
        bool borderOnForeground = true,
        BorderRadiusGeometry? borderRadius,
        Clip clipBehavior = Clip.none,
        Color? color,
        double elevation = 0.0,
        Color? shadowColor,
        ShapeBorder? shape,
        TextStyle? textStyle}) =>
    Material(
      key: key,
      type: type,
      animationDuration: animationDuration,
      borderOnForeground: borderOnForeground,
      borderRadius: borderRadius,
      clipBehavior: clipBehavior,
      color: color,
      elevation: elevation,
      shadowColor: shadowColor,
      shape: shape,
      textStyle: textStyle,
      child: this,
    );