Created
July 4, 2024 04:55
-
-
Save AlexV525/37202b3e4ffcd8a152a438647b586488 to your computer and use it in GitHub Desktop.
Show packages in Flutter App asset NOTICES
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
import 'dart:io'; | |
final separator = '-' * 80; | |
void main() { | |
final file = File('NOTICES').readAsStringSync(); | |
final sections = | |
file.split('\n$separator\n').map((e) => e.split('\n').first).toSet(); | |
print(sections.join('\n')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment