Last active
August 11, 2020 20:07
-
-
Save luizjacomn/df4e20d0b045b643876711c108ab855d to your computer and use it in GitHub Desktop.
Manipular urls de inicialização do firefox
This file contains 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
// menu > opções > Página inicial e novas janelas > URLs personalizadas > Copiar o conteúdo do campo (caso exista) | |
void main() { | |
String fromFirefox = '<from-firefox>'; | |
String token = '|'; | |
List<String> urls = fromFirefox.split(token); | |
urls.add('<new-url>'); | |
urls.insert(<at-position>, '<new-url>'); | |
urls.forEach((url) => print(url)); | |
print('\n'); | |
print(urls.join(token)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment