MorphButton constructor

const MorphButton({
  1. Key? key,
  2. required Widget title,
  3. required VoidCallback onTap,
  4. required Color pressedColor,
  5. required Color initialColor,
  6. required double initialRadius,
  7. required double width,
  8. required double height,
})

Creates a new MorphButton.

Implementation

const MorphButton(
    {super.key,

    /// The text displayed on the button.
    required this.title,

    /// The callback function called when the button is tapped.
    required this.onTap,

    /// The color of the button when pressed.
    required this.pressedColor,

    /// The initial color of the button before pressing.
    required this.initialColor,

    /// The initial radius of the button's corners.
    required this.initialRadius,

    /// The width of the button.
    required this.width,

    /// The height of the button.
    required this.height});