logEvent static method
- @Deprecated('Use sendEvent instead')
- String name, [
- dynamic params
Logs a custom event with the given name and event params.
The event with the same name can have up to 20 params.
The name of the event. Some event names are reserved.
The map of event params. String, Integer, Float, Boolean param types are supported.
Implementation
@Deprecated('Use sendEvent instead')
static Future<void> logEvent(String name, [dynamic params]) async {
if (params is Map<String, dynamic>) {
return await sendEvent(name, params);
} else if (params is Map) {
return await sendEvent(name, Map<String, dynamic>.from(params));
} else {
return await sendEvent(name);
}
}