ActionButton.custom constructor

ActionButton.custom({
  1. Key? key,
  2. required IconData icon,
  3. required String tooltip,
  4. required VoidCallback onPressed,
  5. double iconSize = 18.0,
  6. double? height = 35.0,
  7. double? width = 35.0,
  8. Color? iconColor,
  9. Color? backgroundColor,
})

Factory: Fully custom button (NO enum required)

Implementation

factory ActionButton.custom({
  Key? key,
  required IconData icon,
  required String tooltip,
  required VoidCallback onPressed,
  double iconSize = 18.0,
  double? height = 35.0,
  double? width = 35.0,
  Color? iconColor,
  Color? backgroundColor,
}) {
  return ActionButton._(
    key: key,
    onPressed: onPressed,
    icon: icon,
    tooltip: tooltip,
    iconSize: iconSize,
    height: height,
    width: width,
    iconColor: iconColor,
    backgroundColor: backgroundColor,
  );
}