formatShareText function

String formatShareText(
  1. dynamic item,
  2. {dynamic lead}
)

Implementation

String formatShareText(item, {lead}) {
  lead ??= 'Learn more here:';
  String? sharer = AuthorizationService().currentUser?.id ??
      InstallationService().installationId;
  return '$lead https://share.afrostories.org/share/entity/${item.id}/$sharer';
}