initialize method

  1. @override
Future<void> initialize()
override

will need to be called before any analytics are sent out

Implementation

@override
Future<void> initialize() async {
  if (!isInitialized && enable) {
    isInitialized = true;
    await Future.forEach(_analyticList, (BaseAnalytics analyticPlatform) async {
      await analyticPlatform.initialize();
    });
  }
}