ScreenReporter constructor
ScreenReporter(
- ReporterConfig config, {
- 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',
);
}
}