SkyAnalytics constructor

SkyAnalytics({
  1. required String sourceKey,
  2. required String host,
  3. required bool enabled,
  4. dynamic showLogs = false,
})

Factory constructor to provide the singleton instance.

Implementation

factory SkyAnalytics({
  required String sourceKey,
  required String host,
  required bool enabled,
  showLogs = false,
}) {
  return _instance ??= SkyAnalytics._internal(
    sourceKey: sourceKey,
    host: host,
    isEnable: enabled,
    showLogs: showLogs,
  );
}