getUserReportById method

Future<Report> getUserReportById(
  1. String businessId,
  2. int id,
  3. String reportType
)

Implementation

Future<Report> getUserReportById(
  String businessId,
  int id,
  String reportType, //dashboard or report
) async {
  if (!isReady) {
    throw LittlefishReportException(
      ReportErrorCodes.reportClientNotReady.code,
      ReportErrorCodes.reportClientNotReady.message,
    );
  } else {
    return client.getReportById(
      businessId,
      id,
    );
  }
}