toDecorationImage method
Implementation
DecorationImage toDecorationImage() => DecorationImage(
image: (imageProvider!.type == FLDyImageType.network
? imageProvider!.toNetworkImage()
: imageProvider!.toAssetImage()) as ImageProvider<Object>,
fit: flStringToBoxFit(fit),
alignment: flStringtoAlignment(alignment) ?? Alignment.center,
repeat: flStringToImageRepeat(imageRepeat)!);