saveAttribution method

  1. @override
Future<bool> saveAttribution(
  1. String json
)
override

Persists the active last-click attribution context (as JSON).

  • json: The encoded ActiveAttribution
  • Returns: True if successful

Implementation

@override
Future<bool> saveAttribution(String json) async {
  try {
    return await _prefs.setString(StorageKeys.attribution, json);
  } catch (e) {
    LinkFortyLogger.log('Failed to save attribution: $e');
    return false;
  }
}