deviceRegistration property
Implementation
late final deviceRegistration =
_providedRegistration ??
ReporterDeviceRegistration(
endpoint: config.endpoint,
apiKey: config.apiKey,
platform: defaultTargetPlatform == TargetPlatform.iOS
? 'flutter-ios'
: 'flutter-android',
load: () async => (await channel.invokeMapMethod<String, String>(
'deviceIdentityGet',
{'scope': '${config.endpoint}|${config.apiKey}'},
)),
save: (value) => channel.invokeMethod('deviceIdentitySet', {
'scope': '${config.endpoint}|${config.apiKey}',
'value': value,
}),
);