EasyImage constructor

const EasyImage(
  1. dynamic image, {
  2. Key? key,
  3. ImageStyle style = const ImageStyle(),
  4. Widget? placeholder,
  5. Widget? errorWidget,
  6. VoidCallback? onTap,
  7. bool autoDetect = true,
})

构造函数(自动识别模式)

Implementation

const EasyImage(this.image,
    {super.key,
    this.style = const ImageStyle(),
    this.placeholder,
    this.errorWidget,
    this.onTap,
    this.autoDetect = true});