supercharged_dart library

Supercharged brings all the comfort features from languages like Kotlin to all Dart developers.

Start supercharging your code by importing it:

import 'package:supercharged_dart/supercharged_dart.dart';

Classes

Supercharged
Importer helper class. Does nothing.

Extensions

DateTimeSC on DateTime
Supercharged extension on DateTime objects.
DoubleSC on double
Supercharged extensions on double numbers.
DurationSC on Duration
Supercharged extensions on Duration.
IntSC on int
Supercharged extensions on int numbers.
IterableOfDoubleSC on Iterable<double>
Supercharged extensions on Iterable<double> like List<double> and Set<double>.
IterableOfIntSC on Iterable<int>
Supercharged extensions on Iterable<int> like List<int> and Set<int>.
IterableOfMapEntrySC on Iterable<MapEntry<K, V>>
Supercharged extensions on Iterable<MapEntry> like List<MapEntry> and Set<MapEntry>.
IterableSC on Iterable<T>
Supercharged extensions on Iterables like List and Set.
ListSC on List<T>
Supercharged extensions on List.
MapSC on Map<K, V>
Supercharged extensions on Map.
StringSC on String
Supercharged extensions on String.

Functions

throwIf(bool test, Error errorFactoryFunc()) → void
Throws an Error if predicate test is satisfied
throwIfNot(bool test, Error errorFactoryFunc()) → void
Throws an Error if predicate test is not satisfied