BasicAssetImage constructor

const BasicAssetImage({
  1. Key? key,
  2. BasicImageSize size = BasicImageSize.medium,
  3. String? path,
  4. double? width,
  5. double? height,
  6. double? borderWidth,
  7. Color? borderColor,
  8. BoxShape shape = BoxShape.rectangle,
  9. BorderRadius? borderRadius,
  10. BoxFit boxFit = BoxFit.cover,
  11. ImageProvider<Object>? imageProvider,
})

Implementation

const BasicAssetImage({
  Key? key,
  this.size = BasicImageSize.medium,
  this.path,
  this.width,
  this.height,
  this.borderWidth,
  this.borderColor,
  this.shape = BoxShape.rectangle,
  this.borderRadius,
  this.boxFit = BoxFit.cover,
  this.imageProvider,
})  : assert(
        (path == null && imageProvider != null) || (path != null && imageProvider == null),
        'You must provide either a path or an imageProvider',
      ),
      super(key: key);