createMockConfig static method
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,
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,
);
}