createMockConfig static method

ULinkConfig createMockConfig({
  1. String apiKey = 'test-api-key',
  2. String baseUrl = 'https://api.test.com',
  3. bool debug = true,
  4. bool persistLastLinkData = false,
  5. Duration? lastLinkTimeToLive,
  6. bool clearLastLinkOnRead = true,
  7. bool redactAllParametersInLastLink = false,
  8. List<String> redactedParameterKeysInLastLink = const [],
  9. bool enableDeepLinkIntegration = true,
  10. bool enableAnalytics = false,
  11. bool enableCrashReporting = false,
  12. int timeout = 5000,
  13. int retryCount = 1,
  14. Map<String, dynamic>? metadata,
})

Creates a mock ULinkConfig for testing

Implementation

static ULinkConfig createMockConfig({
  String apiKey = 'test-api-key',
  String baseUrl = 'https://api.test.com',
  bool debug = true,
  bool persistLastLinkData = false,
  Duration? lastLinkTimeToLive,
  bool clearLastLinkOnRead = true,
  bool redactAllParametersInLastLink = false,
  List<String> redactedParameterKeysInLastLink = const [],
  bool enableDeepLinkIntegration = true,
  bool enableAnalytics = false,
  bool enableCrashReporting = false,
  int timeout = 5000,
  int retryCount = 1,
  Map<String, dynamic>? metadata,
}) {
  return ULinkConfig(
    apiKey: apiKey,
    baseUrl: baseUrl,
    debug: debug,
    persistLastLinkData: persistLastLinkData,
    lastLinkTimeToLive: lastLinkTimeToLive,
    clearLastLinkOnRead: clearLastLinkOnRead,
    redactAllParametersInLastLink: redactAllParametersInLastLink,
    redactedParameterKeysInLastLink: redactedParameterKeysInLastLink,
    enableDeepLinkIntegration: enableDeepLinkIntegration,
    enableAnalytics: enableAnalytics,
    enableCrashReporting: enableCrashReporting,
    timeout: timeout,
    retryCount: retryCount,
    metadata: metadata,
  );
}