AppButton constructor

const AppButton({
  1. required IconData icon,
  2. required Color background,
  3. required dynamic onPress(),
  4. double margin = 20,
  5. double size = 17,
  6. Color iconColor = Colors.white,
  7. Key? key,
})

Implementation

const AppButton({
  required this.icon,
  required this.background,
  required this.onPress,
  this.margin = 20,
  this.size = 17,
  this.iconColor = Colors.white,
  Key? key,
}) : super(key: key);