build method

AnalyticsConfig build()

Implementation

AnalyticsConfig build() {
  if (appCode.isEmpty) throw StateError("AppCode must be provided");
  if (devToken.isEmpty) throw StateError("DevToken must be provided");
  if (cryptKey.isEmpty) throw StateError("CryptKey must be provided");
  return AnalyticsConfig(
    appCode: appCode,
    devToken: devToken,
    cryptKey: cryptKey,
    minReportInterval: minReportInterval,
    maxReportNumEachTime: maxReportNumEachTime,
    debugMode: debugMode,
  );
}