getDefaultStyle method
AntdImageStyle
getDefaultStyle(
- BuildContext context,
- AntdTheme theme,
- AntdMapToken token
override
Implementation
@override
AntdImageStyle getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) {
var style = super.getDefaultStyle(context, theme, token);
var radiusFinal = radius ?? token.radius.seed;
style = style.copyWith(
bodyStyle: style.bodyStyle?.copyWith(radius: radiusFinal.radius.all));
style =
margeStyle(style, theme.avatarStyle?.call(context, this, style, token));
return style;
}