Created
May 21, 2024 07:44
-
-
Save prateekmedia/ba9c55d4710c079934e72765ca81c047 to your computer and use it in GitHub Desktop.
mycode.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final url = | |
"otpauth://type/issuer#:account?algorithm=SHA1"; | |
final uri = Uri.parse(url); | |
print(uri.toString()); | |
final query = {...uri.queryParameters}; | |
query["codeDisplay"] = "This-is-cool"; | |
final newUri = uri.replace(queryParameters: query); | |
print(newUri.toString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment