XImage.asset constructor
XImage.asset(
- String asset, {
- double? width,
- double? height,
- BoxFit fit = BoxFit.contain,
- WidgetBuilder? placeholderBuilder,
Implementation
factory XImage.asset(String asset,
{double? width,
double? height,
BoxFit fit = BoxFit.contain,
WidgetBuilder? placeholderBuilder}) {
return XImage(
uri: asset,
remote: false,
width: width,
height: height,
fit: fit,
placeholderBuilder: placeholderBuilder,
);
}