VisualComponent constructor

const VisualComponent({
  1. Key? key,
  2. required int duration,
  3. required Color color,
  4. required Curve curve,
  5. double? width,
  6. double? height,
  7. double radius = 0,
  8. List<BoxShadow>? shadows,
  9. bool animate = false,
  10. LinearGradient? linearGradient,
})

Implementation

const VisualComponent({
  Key? key,
  required this.duration,
  required this.color,
  required this.curve,
  this.width,
  this.height,
  this.radius = 0,
  this.shadows,
  this.animate = false,
  this.linearGradient
}) : super(key: key);