AppImage constructor

const AppImage({
  1. Key? key,
  2. File? image,
  3. String? imagePath,
  4. double? width,
  5. double? height,
})

Creates an AppImage widget.

Parameters:

  • image: The file object containing the image (optional).
  • imagePath: The path to the image relative to the API base URL (optional).
  • width: The width of the image widget (optional).
  • height: The height of the image widget (optional).

Note: Either image or imagePath should be provided, but not both.

Implementation

const AppImage({
  super.key,
  this.image,
  this.imagePath,
  this.width,
  this.height,
});