extractMetaDataParameter static method
Decrypts the received encrypted params using the provided passphrase.
Returns the decrypted parameters as a string.
Decrypts the received encrypted params using the provided passphrase.
Returns the decrypted parameters as a string.
Extracts the query parameters from the given url.
Returns a map of query parameter keys to their corresponding values.
Implementation
static String extractMetaDataParameter(String url) {
final queryParams = url.split('?')[1];
final paramPairs = queryParams.split('&');
for (var pair in paramPairs) {
if (pair.startsWith('meta-data=')) {
return pair.substring('meta-data='.length);
}
}
return "";
}