supercharged_dart library Null safety

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
Supercharged extension on DateTime objects.
DoubleSC
Supercharged extensions on double numbers.
DurationSC
Supercharged extensions on Duration.
IntSC
Supercharged extensions on int numbers.
IterableOfDoubleSC
Supercharged extensions on Iterable<double> like List<double> and Set<double>.
IterableOfIntSC
Supercharged extensions on Iterable<int> like List<int> and Set<int>.
IterableOfMapEntrySC
Supercharged extensions on Iterable<MapEntry> like List<MapEntry> and Set<MapEntry>.
IterableSC
Supercharged extensions on Iterables like List and Set.
ListSC
Supercharged extensions on List.
MapSC
Supercharged extensions on Map.
StringSC
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 [...]