setCaptureHeaders static method Null safety

Future<void> setCaptureHeaders(
  1. {required List<String> regex}

Capture HTTP header fields by providing a list of reguluar expressions strings that match the HTTP field keys.

Default: No HTTP header fields are captured. Keywords must be provided explicitly

  • Parameters:
    • regex: List of String to capture matching HTTP header field keywords


static Future<void> setCaptureHeaders({required List<String> regex}) async {
  await _channel
      .invokeMethod('setCaptureHeaders', <String, dynamic>{'regex': regex});