setup static method Null safety

Future<void> setup(
  1. {required String key,
  2. required String reportingUrl,
  3. SetupOptions? options}
)

Initializes Instana with a key and reportingUrl and optionally with SetupOptions

Please run this as soon as possible in your app's lifecycle

Implementation

static Future<void> setup(
    {required String key,
    required String reportingUrl,
    SetupOptions? options}) async {
  return await _channel.invokeMethod('setup', <String, dynamic>{
    'key': key,
    'reportingUrl': reportingUrl,
    'collectionEnabled': options?.collectionEnabled
  });
}