updateReportFeedback method Null safety

Future<void> updateReportFeedback(
  1. Report _
)

리포트 카드 피드백을 업데이트합니다.

Implementation

Future<void> updateReportFeedback(Report _) async {
  LogManager().addLog("updateReportFeedback");
  try {
    if (_.feedback == null) return;
    await reqPUT(
      path: '/api/reports/${_.id}/updateFeedback',
      queryParameters: {"feedback": _.feedback!.index.toString()},
      body: Uint8List.fromList([]),
    );
  } catch (e) {
    LogManager().addLog('updateReportFeedback call failed: $e');
  }
}