IDKitImage.byteData constructor

const IDKitImage.byteData({
  1. Key? key,
  2. required ByteData? byteData,
  3. double? width,
  4. double? height,
  5. Color? activityIndicatorColor,
  6. Widget? loadingChild,
  7. Widget? errorChild,
})

Image resource loading method of ByteData type.

Implementation

const IDKitImage.byteData({
  super.key,
  required this.byteData,
  this.width,
  this.height,
  this.activityIndicatorColor,
  this.loadingChild,
  this.errorChild,
})  : image = null,
      byteBuffer = null,
      immutableBuffer = null,
      uint8List = null,
      uint32List = null,
      pixelFormat = null;