BasicAssetImage constructor
const
BasicAssetImage({
- Key? key,
- BasicImageSize size = BasicImageSize.medium,
- String? path,
- double? width,
- double? height,
- double? borderWidth,
- Color? borderColor,
- BoxShape shape = BoxShape.rectangle,
- BorderRadius? borderRadius,
- BoxFit boxFit = BoxFit.cover,
- 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);