getThumbnailFromMembereMediumModel static method
Widget
getThumbnailFromMembereMediumModel({
- MemberMediumModel? memberMediumModel,
- double? height,
- double? width,
- BoxFit? fit,
- Alignment? alignment,
Implementation
static Widget getThumbnailFromMembereMediumModel(
{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);
} else {
return getImageFromURL(
url: memberMediumModel.url!, height: height, width: width);
}
}