ResizeButton constructor

const ResizeButton({
  1. Key? key,
  2. required VoidCallback function,
  3. String buttonName = "start",
  4. String endLabel = "end",
  5. Color startColor = Colors.blue,
  6. Color endColor = Colors.amber,
  7. double miniSize = 120,
  8. double largeSize = 350,
  9. Icon icon = const Icon(Icons.star_half_rounded),
})

Implementation

const ResizeButton(
    {Key? key,
    required this.function,
    this.buttonName = "start",
    this.endLabel = "end",
    this.startColor = Colors.blue,
    this.endColor = Colors.amber,
    this.miniSize = 120,
    this.largeSize = 350,
    this.icon = const Icon(Icons.star_half_rounded)})
    : super(key: key);