xListTileIcon method

Widget xListTileIcon (
  1. {double size = 30,
  2. Function onTap,
  3. Color color = Colors.red,
  4. double height = 50,
  5. double width = 50}
)

Implementation

Widget xListTileIcon(
    {double size = 30,
    Function onTap,
    Color color = Colors.red,
    double height = 50,
    double width = 50}) {
  return XContainer(
      onTap: onTap,
      width: width,
      height: height,
      color: color.withOpacity(0.1),
      rounded: 10,
      child: Icon(
        this,
        size: size,
        color: color,
      ).toCenter());
}