record method
Attributes must be deliberately selected non-sensitive scalar values.
Implementation
void record(
String type,
String name, [
Map<String, Object?> attributes = const {},
]) {
if (!_active ||
!isDeviceApproved ||
!_recording ||
_sensitive ||
!_foreground ||
isPresentingUi) {
return;
}
_diagnostics.add(type, name, screen, attributes);
}