sugar 3.0.0 sugar: ^3.0.0 copied to clipboard
Forus Labs' standard library extension. Utilities for date-times, timezones, collections, monads & more.
Sugar - Standard Library Extension #
Sugar is an extension to Dart's standard library.
It provides the following (and much more!):
- Date-time and timezone API inspired by
java.time
. - Monads such as
Result<S,F>
&Maybe<T>
. - Syntax sugar for aggregating & manipulating collections.
- Types for representing and working with ranges & intervals.
It consolidates several micro-packages that provide bits and pieces of date-time & timezone utilities into a single package.
Getting Started #
Run the following command:
dart pub add sugar
Alternatively, add Sugar as a dependency in your pubspec:
dependencies:
sugar: ^ 3.0.0
Import the library:
import 'package:sugar/sugar.dart';
Check out the documentation to get started.