ZegoAvatarBuilder typedef

ZegoAvatarBuilder = Widget? Function(BuildContext context, Size size, ZegoUIKitUser? user, Map<String, dynamic> extraInfo)

A typedef for the avatar builder function.

This function is responsible for building the avatar widget based on the provided parameters.

  • context: The build context.
  • size: The size of the avatar.
  • user: The ZegoUIKitUser representing the user associated with the avatar.
  • extraInfo: Additional information as a key-value map.

The function should return a widget representing the avatar.

Implementation

typedef ZegoAvatarBuilder = Widget? Function(
  BuildContext context,
  Size size,
  ZegoUIKitUser? user,
  Map<String, dynamic> extraInfo,
);