supercharged 2.1.1 supercharged: ^2.1.1 copied to clipboard
Supercharged brings all the comfort features from languages like Kotlin to all Flutter developers.
Supercharged is a Flutter package with extension methods.
Development discontinued #
There are no new features planed for Supercharged.
You can still use it in your current project and the well-tested code will continue to work for maybe years.
The collection handling - one of Supercharged biggest features - is now adapted by Dart's own collection package. To avoid fragmentation, I'll point to the official solution.
Other features like
Color handling are ineffecient, because they can not be used with
What should I do? #
You can stay on the lastest version of Supercharged, as it is well written and test covered. If you stumble on bugs you can adopt the code in your codebase or fork the project.
The code is MIT licenced, so you can take out certain extensions you like.
As I mentioned the package collection will take the lead in collection-related extension methods.
If you insist on
Duration extensions, you might want to look at package time. But I strongly recommend using
var twoSeconds = const Duration(seconds: 2);
For substring extraction it's always a good invest to learn regex:
var input = "this:bee"; var result = RegExp(r'.*:(.+)').firstMatch(input)?.group(1); print(result); // "bee"
Take the time to create compile-time constant color values:
// pattern: const Color(0xAARRGGBB) var red = const Color(0xFFFF0000); var green = const Color(0xFF00FF00); var yellow = const Color(0xFF0000FF);