profile static method
Creates a profile image with default styling.
Uses a circular shape with a profile placeholder.
Implementation
static TImage profile({
String? url,
String? name,
String? role,
double? size = 42,
double? width,
double? height,
double? aspectRatio,
AlignmentGeometry alignment = Alignment.center,
double padding = 5,
bool forceCache = false,
}) {
return TImage.circle(
url: url,
placeholder: 'package:te_widgets/assets/icons/profile.png',
title: name,
subTitle: role,
size: size,
width: width,
height: height,
aspectRatio: aspectRatio,
alignment: alignment,
padding: padding,
disabled: true,
forceCache: forceCache,
);
}