XImage constructor
XImage({})
Implementation
XImage({Key? key, required this.image, this.fit, this.width, this.height, this.radius, this.type = XImageType.general, this.background, this.hideIcon = false}) : super(key: key) {
iconSize = (this.height == null ? 40.w : this.height!) / 2;
background = this.background ?? Colors.transparent;
}