shareCall static method
Format log based on call
and tries to share it.
Implementation
static Future<AliceExportResult> shareCall({
required BuildContext context,
required AliceHttpCall call,
}) async {
final callLog =
await AliceExportHelper.buildFullCallLog(call: call, context: context);
if (callLog == null) {
return AliceExportResult(
success: false,
error: AliceExportResultError.logGenerate,
);
}
await Share.share(
callLog,
subject: context.i18n(AliceTranslationKey.emailSubject),
);
return AliceExportResult(success: true);
}