setDefaultEventParameters method

Future<void> setDefaultEventParameters(
  1. Map<String, Object?>? defaultParameters
)

Adds parameters that will be set on every event logged from the SDK, including automatic ones.

Implementation

Future<void> setDefaultEventParameters(
  Map<String, Object?>? defaultParameters,
) async {
  defaultParameters?.forEach((key, value) {
    assert(
      value is String || value is num || value == null,
      "'string', 'null' or 'number' must be set as the value of the parameter: $key",
    );
  });
  await _delegate.setDefaultEventParameters(defaultParameters);
}