isReportHandlerSupportedInPlatform method

bool isReportHandlerSupportedInPlatform(
  1. Report report,
  2. ReportHandler reportHandler
)

Checks is report handler is supported in given platform. Only supported report handlers in given platform can be used.

Implementation

bool isReportHandlerSupportedInPlatform(
  Report report,
  ReportHandler reportHandler,
) {
  if (reportHandler.getSupportedPlatforms().isEmpty) {
    return false;
  }
  return reportHandler.getSupportedPlatforms().contains(report.platformType);
}