init method

  1. @override
Future<int?> init(
  1. String appKey, {
  2. String? serverUrl,
  3. String? uploadApi,
  4. dynamic uploadInterval = 1000,
  5. List<String>? uuids,
  6. dynamic debug = false,
  7. String? userId,
})
override

Implementation

@override
Future<int?> init(String appKey, {String? serverUrl, String? uploadApi, uploadInterval = 1000, List<String>? uuids, debug = false,String? userId }) async {
  return methodChannel.invokeMethod<int>('init', {
    'appKey': appKey,
    'serverUrl': serverUrl,
    'uploadApi': uploadApi,
    'uploadInterval': uploadInterval,
    'uuids': uuids,
    'debug': debug,
    'userId': userId
  });
}