avatar static method

Widget avatar(
  1. BuildContext context,
  2. double radius,
  3. String pageId,
  4. String profileMemberId,
  5. String? currentMemberId,
  6. AppModel app,
  7. String feedId,
)

Implementation

static Widget avatar(
    BuildContext context,
    double radius,
    String pageId,
    String profileMemberId,
    String? currentMemberId,
    AppModel app,
    String feedId) {
  return getProfilePhotoButtonFromExternalProvider(app, context,
      radius: radius,
      externalProfileURLProvider: () =>
          _getProfileAttributes(profileMemberId, app, feedId),
      onPressed: () {
        SwitchMember.switchMember(
            context, app, pageId, profileMemberId, currentMemberId);
      });
}