ScreenReporter constructor

ScreenReporter(
  1. ReporterConfig config, {
  2. ReporterDeviceRegistration? registration,
})

Implementation

ScreenReporter(this.config, {ReporterDeviceRegistration? registration})
  : _providedRegistration = registration {
  if (registration != null &&
      (registration.endpoint != config.endpoint ||
          registration.apiKey != config.apiKey)) {
    throw ArgumentError(
      'Device registration must belong to the same app endpoint and ingest key',
    );
  }
}