BuglyOptions constructor

BuglyOptions({
  1. required String appId,
  2. required String appKey,
  3. required String bundleId,
})

Implementation

BuglyOptions({
  required String appId,
  required String appKey,
  required String bundleId
}) {
  this.appId = appId;
  this.appKey = appKey;
  this.bundleId = bundleId;
  if (Platform.isIOS) {
    this.platform = "iPhone";
  } else if (Platform.isAndroid) {
    this.platform = "Android";
  } else if (Platform.isMacOS) {
    this.platform = "Mac";
  } else if (Platform.isWindows) {
    this.platform = "Windows";
  }
}