ImageView constructor

ImageView({
  1. required double width,
  2. required double height,
  3. AssetImage? assetAspectRatio,
  4. AssetImage? assetBackground,
  5. String? urlAspectRation,
  6. String? urlBackground,
  7. Color? colorBackground,
  8. double? radius_all,
  9. double? radius_topLeft,
  10. double? radius_topRight,
  11. double? radius_bottomLeft,
  12. double? radius_bottomRight,
  13. EdgeInsets? padding,
  14. EdgeInsets? margin,
  15. double? opacity,
  16. Alignment? gravityLayout_alignment,
  17. bool? responsive_auto,
  18. BoxFit? boxFit_background,
  19. VoidCallback? onPressed,
  20. ValueChanged<ImageViewState>? onChangeState,
})

Implementation

ImageView( {
  required double  width,
  required double height,

  //src
  AssetImage? this.assetAspectRatio,
  AssetImage? this.assetBackground,
  String? this.urlAspectRation,

  //background
  String? this.urlBackground,
  Color? this.colorBackground,

  //radius
  double? this.radius_all ,
  double? this.radius_topLeft ,
  double? this.radius_topRight ,
  double? this.radius_bottomLeft ,
  double? this.radius_bottomRight ,

  //space
  EdgeInsets? this.padding,
  EdgeInsets? this.margin,

  //other
  double? this.opacity,
  Alignment? this.gravityLayout_alignment,
  bool? this.responsive_auto,
  BoxFit? this.boxFit_background,

  //call back
  VoidCallback? this.onPressed,
  ValueChanged<ImageViewState>? this.onChangeState
}) {

  //set
  this.myWidth = width;
  this.myHeight = height;

}