init method

  1. @override
Future<void> init(
  1. String appKey, {
  2. Uri? apiUri,
  3. Uri? baseUri,
  4. int? maximumLocalStorageSize,
  5. bool printToConsole = true,
  6. bool enableUIEventLogging = true,
  7. bool enableCrashReporting = true,
  8. bool enableAndroidLogcatLogging = true,
  9. String? overrideDeviceName,
  10. String? version,
  11. String? build,
})
override

Implementation

@override
Future<void> init(
  String appKey, {
  Uri? apiUri,
  Uri? baseUri,
  int? maximumLocalStorageSize,
  bool printToConsole = true,
  bool enableUIEventLogging = true,
  bool enableCrashReporting = true,
  bool enableAndroidLogcatLogging = true,
  String? overrideDeviceName,
  String? version,
  String? build,
}) {
  Map<String, Object> map = <String, Object>{
    'appKey': appKey,
    'apiUri': apiUri != null ? apiUri.toString() : '',
    'baseUri': baseUri != null ? baseUri.toString() : '',
    'maximumLocalStorageSize': maximumLocalStorageSize ?? 0,
    'printToConsole': printToConsole,
    'enableUIEventLogging': enableUIEventLogging,
    'enableCrashReporting': enableCrashReporting,
    'enableAndroidLogcatLogging': enableAndroidLogcatLogging,
    'overrideDeviceName': overrideDeviceName ?? '',
  };
  return _channel.invokeMethod('init', map);
}