MorphGlassSurface constructor

const MorphGlassSurface({
  1. required MorphGlassKind kind,
  2. required RRect shape,
  3. required Color color,
  4. required Brightness brightness,
  5. double lift = 0,
  6. double scaleX = 1,
  7. double scaleY = 1,
  8. MorphGlassOptics? optics,
  9. double? blurRadius,
  10. Color? tint,
  11. double transmissionGamma = 1,
  12. bool enabled = true,
  13. bool glass = true,
  14. double opacity = 1,
  15. MorphGlassGlow? glow,
  16. List<BoxShadow>? shadows,
  17. MorphGlassStyle? style,
})

Creates a surface description.

Implementation

const MorphGlassSurface({
  required this.kind,
  required this.shape,
  required this.color,
  required this.brightness,
  this.lift = 0,
  this.scaleX = 1,
  this.scaleY = 1,
  this.optics,
  this.blurRadius,
  this.tint,
  this.transmissionGamma = 1,
  this.enabled = true,
  this.glass = true,
  this.opacity = 1,
  this.glow,
  this.shadows,
  this.style,
});