decorationImage static method
DecorationImage
decorationImage(
- String assetName, {
- BoxFit fit = BoxFit.cover,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
Create a DecorationImage from local assetName
Implementation
static DecorationImage decorationImage(
String assetName, {
BoxFit fit = BoxFit.cover,
Alignment alignment = Alignment.center,
ImageRepeat repeat = ImageRepeat.noRepeat,
}) {
return DecorationImage(
image: AssetImage(assetName),
alignment: alignment,
repeat: repeat,
fit: fit,
);
}