reportActivity static method
Report an activity.
id
Activity id to report.
reason
Reason of reporting.
explanation
Explanation of reason.
Implementation
static Future reportActivity(String id, int reason, String explanation) {
Map<String, dynamic> reportActivityBody = {
'activityId': id,
'reason': reason,
'explanation': explanation,
};
return NativeBridge.async(
'Communities.reportActivity', jsonEncode(reportActivityBody));
}