ImageViewState constructor

ImageViewState({
  1. required double widthNeeded,
  2. required double heightNeeded,
  3. VoidCallback? onPressed,
  4. AssetImage? assetAspectRatio,
  5. AssetImage? assetBackground,
  6. String? urlAspectRation,
  7. String? urlBackground,
  8. double? radius_all,
  9. double? radius_topLeft,
  10. double? radius_topRight,
  11. double? radius_bottomLeft,
  12. double? radius_bottomRight,
  13. Color? colorBackground,
  14. EdgeInsets? padding,
  15. EdgeInsets? margin,
  16. double? opacity,
  17. Alignment? gravityLayout_alignment,
  18. 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;

}