ProAssetImage constructor

const ProAssetImage({
  1. Key? key,
  2. required double height,
  3. required double width,
  4. required String imagePath,
  5. BoxFit? boxFit,
  6. Alignment? imageAlignment,
  7. double? borderRadius,
  8. Widget? child,
})

Using asset image is now more easy with ProAssetImage. Just check parameters and pass values.

Implementation

const ProAssetImage({
  Key? key,
  required this.height,
  required this.width,
  required this.imagePath,
  this.boxFit,
  this.imageAlignment,
  this.borderRadius,
  this.child,
}) : super(key: key);