logEvent method

  1. @override
Future<void> logEvent(
  1. String? name,
  2. List<Type>? sendTo, {
  3. Map<String, dynamic>? properties = const {},
})
override

Implementation

@override
Future<void> logEvent(String? name, List<Type>? sendTo,
    {Map<String, dynamic>? properties = const {}}) async {
  if (name != null && name.isNotEmpty) {
    if (isInitialized == true) {
      await Future.forEach(_analyticList, (BaseAnalytics analyticPlatform) async {
        await analyticPlatform.logEvent(name, sendTo, properties: properties);
      });
    }
  }
}