HeartShape constructor

const HeartShape({
  1. Key? key,
  2. double width = 100,
  3. double height = 100,
  4. Color color = Colors.red,
})

The color of the heart shape. Constructor for the HeartShape widget.

Implementation

/// Constructor for the HeartShape widget.
const HeartShape({
  Key? key,
  this.width = 100,

  /// Default width of the heart shape.
  this.height = 100,

  /// Default height of the heart shape.
  this.color = Colors.red,

  /// Default color of the heart shape.
}) : super(key: key);