material method

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

Implementation

Material material({
  MaterialType type = MaterialType.canvas,
  double elevation = 0.0,
  Color? color,
  Color? shadowColor,
  Color? surfaceTintColor,
  TextStyle? textStyle,
  BorderRadiusGeometry? borderRadius,
  ShapeBorder? shape,
  bool borderOnForeground = true,
  Clip clipBehavior = Clip.none,
}) {
  //   ,   ,  ,   ,
  return Material(
      child: this,
      type: type,
      elevation: elevation,
      color: color,
      shadowColor: shadowColor,
      surfaceTintColor: surfaceTintColor,
      textStyle: textStyle,
      borderRadius: borderRadius,
      shape: shape,
      borderOnForeground: borderOnForeground,
      clipBehavior: clipBehavior);
}