CLSurface constructor

const CLSurface({
  1. Key? key,
  2. required CLSurfaceKind kind,
  3. Widget? child,
  4. Color? color,
  5. double? radius,
  6. BoxBorder? border,
  7. List<BoxShadow>? shadows,
  8. EdgeInsetsGeometry? padding,
  9. Clip clipBehavior = Clip.none,
  10. double? width,
  11. double? height,
})

Implementation

const CLSurface({
  super.key,
  required this.kind,
  this.child,
  this.color,
  this.radius,
  this.border,
  this.shadows,
  this.padding,
  this.clipBehavior = Clip.none,
  this.width,
  this.height,
}) : tintColor = null,
     assert(kind != CLSurfaceKind.tint || color != null, 'CLSurfaceKind.tint richiede un colore: usa CLSurface.tint(color: ...)');