ImageViewState constructor
ImageViewState({
- required double widthNeeded,
- required double heightNeeded,
- VoidCallback? onPressed,
- AssetImage? assetAspectRatio,
- AssetImage? assetBackground,
- String? urlAspectRation,
- String? urlBackground,
- double? radius_all,
- double? radius_topLeft,
- double? radius_topRight,
- double? radius_bottomLeft,
- double? radius_bottomRight,
- Color? colorBackground,
- EdgeInsets? padding,
- EdgeInsets? margin,
- double? opacity,
- Alignment? gravityLayout_alignment,
- bool? responsive_auto,
Implementation
ImageViewState( {
required double widthNeeded,
required double heightNeeded,
VoidCallback? this.onPressed,
AssetImage? this.assetAspectRatio, //src
AssetImage? this.assetBackground,
String? this.urlAspectRation, //src
String? this.urlBackground,
double? this.radius_all ,
double? this.radius_topLeft ,
double? this.radius_topRight ,
double? this.radius_bottomLeft ,
double? this.radius_bottomRight ,
Color? this.colorBackground,
EdgeInsets? this.padding,
EdgeInsets? this.margin,
double? this.opacity,
Alignment? this.gravityLayout_alignment,
bool? this.responsive_auto
}) {
// set value
width = widthNeeded ;
height = heightNeeded;
}