sugar 3.0.0 copy "sugar: ^3.0.0" to clipboard
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 Codecov Pub Dev Documentation

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.

4
likes
0
pub points
82%
popularity

Publisher

verified publisherforuslabs.com

Forus Labs' standard library extension. Utilities for date-times, timezones, collections, monads & more.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, js, meta

More

Packages that depend on sugar