attach method

void attach({
  1. GetReportDataCallback? dataCallback,
  2. DownloadReportCallback? downloadCallback,
})

Internal method used by the reporting engine to attach logic to this controller.

Developers should not typically call this method directly.

Implementation

void attach({
  GetReportDataCallback? dataCallback,
  DownloadReportCallback? downloadCallback,
}) {
  if (dataCallback != null) _getDataCallback = dataCallback;
  if (downloadCallback != null) _downloadCallback = downloadCallback;
}