NsgIconButton constructor

const NsgIconButton({
  1. Key? key,
  2. IconData? icon,
  3. required VoidCallback onPressed,
  4. Color? color,
  5. Color? backColor,
  6. double size = 24,
  7. EdgeInsets padding = const EdgeInsets.all(10),
  8. String? svg,
})

Implementation

const NsgIconButton(
    {Key? key, this.icon, required this.onPressed, this.color, this.backColor, this.size = 24, this.padding = const EdgeInsets.all(10), this.svg})
    : super(key: key);