getCommonAvatarBuilder static method

Widget getCommonAvatarBuilder({
  1. required TencentCloudChatAvatarScene scene,
  2. double? width,
  3. double? height,
  4. double? borderRadius,
  5. required List<String?> imageList,
  6. Decoration? decoration,
})

Implementation

static Widget getCommonAvatarBuilder({
  required TencentCloudChatAvatarScene scene,
  double? width,
  double? height,
  double? borderRadius,
  required List<String?> imageList,
  Decoration? decoration,
}) {
  Widget? widget;

  if (_commonAvatarBuilder != null) {
    widget = _commonAvatarBuilder!(
      scene: scene,
      width: width,
      height: height,
      borderRadius: borderRadius,
      imageList: imageList,
      decoration: decoration,
    );
  }
  return widget ??
      TencentCloudChatAvatar(
        scene: scene,
        width: width,
        height: height,
        borderRadius: borderRadius,
        imageList: imageList,
        decoration: decoration,
      );
}