startWithApiKey method Null safety

Future<bool> startWithApiKey(
  1. String apiKey,
  2. List<String> stores,
  3. String? userId,
  4. PLYLogLevel logLevel,
  5. PLYRunningMode runningMode
)

Implementation

static Future<bool> startWithApiKey(String apiKey, List<String> stores,
    String? userId, PLYLogLevel logLevel, PLYRunningMode runningMode) async {
  return await _channel.invokeMethod('startWithApiKey', <String, dynamic>{
    'apiKey': apiKey,
    'stores': stores,
    'userId': userId,
    'logLevel': logLevel.index,
    'runningMode': runningMode.index
  });
}