OptimizedImage.asset constructor
OptimizedImage.asset(})
Implementation
factory OptimizedImage.asset(
String path, {
Key? key,
double? width,
double? height,
BoxFit fit = BoxFit.cover,
int? maxWidth,
int? maxHeight,
Widget? placeholder,
Widget? errorWidget,
}) =>
OptimizedImage(
key: key,
assetPath: path,
width: width,
height: height,
fit: fit,
maxWidth: maxWidth,
maxHeight: maxHeight,
placeholder: placeholder,
errorWidget: errorWidget,
);