Skip to content
pubscout

supercharged

2.1.1, released 5 years ago by felix-blaschke.de

Extension methods adding utility functions for Dart and Flutter.

WASM-ready
$ flutter pub add supercharged
Source repository

What it does

Provides a collection of extension methods for common Dart/Flutter types such as Iterable, String, Duration, Color, and Rect. Adds helpers like tweening, parsing, and collection shortcuts. All extensions are null‑safe and work on all Flutter platforms.

AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need quick, ready‑made helpers for collections, strings, colors, or durations without writing boilerplate.
  • You prefer a single dependency that works across Android, iOS, web, desktop, and is MIT licensed.

Skip it when

  • You require actively maintained code or new features.
  • You want compile‑time const constructors for colors or durations.
  • The needed functionality is already covered by Dart's core libraries or the collection package.

Strengths

  • Well‑tested and null‑safe across all Flutter platforms.
  • Large set of handy extensions covering many common tasks.
  • MIT license allows easy forking or selective use.

Weaknesses

  • Development discontinued; no new features or bug fixes planned.
  • Some extensions duplicate functionality now in Dart's core or collection package.
  • Certain helpers (e.g., Duration, Color) cannot be used with const constructors.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:supercharged/supercharged.dart';

void main() {
  var red = '#FF0000'.toColor(); // Color from hex string
  var twoSeconds = Duration(seconds: 2).delay(); // adds delay extension
  var sorted = [3,1,2].sortedBySC((e) => e);
  print(red);
  print(sorted);
}

Alternatives

Packages that do the same job and could replace supercharged.

  • process_run

    Run shell scripts and locate executables across Linux, Windows and macOS.

  • result_dart

    Kotlin and Swift inspired Result class for error handling in Dart and Flutter.

  • apollovm

    Portable multi-language VM to parse, run, translate, and compile Dart, Java, Kotlin, Go, C#, JS, and Python.

  • message_pack_dart

    Binary MessagePack serializer/deserializer for Dart and Flutter.

Works with

Packages commonly used together with supercharged: ones it builds on, ones built on it, and its own family.