getImageFromMediumModel static method
Widget
getImageFromMediumModel({
- MemberMediumModel? memberMediumModel,
- double? height,
- double? width,
- BoxFit? fit,
- Alignment? alignment,
Implementation
static Widget getImageFromMediumModel(
{MemberMediumModel? memberMediumModel,
double? height,
double? width,
BoxFit? fit,
Alignment? alignment}) {
if (memberMediumModel == null) {
return Image(
image: AssetImage('assets/images/image_not_available.png'),
height: height,
width: width,
alignment: alignment!,
);
} else {
return getImageFromURL(
url: memberMediumModel.url!, height: height, width: width);
}
}