FollyCell.iconButton constructor

FollyCell.iconButton(
  1. IconData iconData, {
  2. dynamic onPressed()?,
  3. EdgeInsets padding = EdgeInsets.zero,
  4. AlignmentGeometry align = Alignment.center,
  5. Color color = Colors.transparent,
  6. Key? key,
})

Implementation

FollyCell.iconButton(
  IconData iconData, {
  Function()? onPressed,
  this.padding = EdgeInsets.zero,
  this.align = Alignment.center,
  this.color = Colors.transparent,
  super.key,
}) : child = FittedBox(
        child: IconButton(
          icon: Icon(iconData),
          onPressed: onPressed,
        ),
      );