record method

void record(
  1. String type,
  2. String name, [
  3. Map<String, Object?> attributes = const {}
])

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);
}