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,
  11. Duration animationDuration = kThemeChangeDuration,
})

Modifier for creating a piece of material for widgets.

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,
  Duration animationDuration = kThemeChangeDuration
}) {
  return Material(
    type: type,
    elevation: elevation,
    color: color,
    shadowColor: shadowColor,
    surfaceTintColor: surfaceTintColor,
    textStyle: textStyle,
    borderRadius: borderRadius,
    shape: shape,
    borderOnForeground: borderOnForeground,
    clipBehavior: clipBehavior,
    animationDuration: animationDuration,
    child: this,
  );
}