sugar 2.4.1 copy "sugar: ^2.4.1" to clipboard
sugar: ^2.4.1 copied to clipboard

Forus Labs' Core Dart library. Provides sweet syntax sugar for common patterns related to the collections, core sand time.

Sugar - Syntax Sugar for Dart #

Sugar Build Pub Dev Documentation

Sugar is Forus Labs' common library for Dart. It contains frequently used utilities.

Please view the stable brunch for a production version.

dependencies:
  sugar: ^2.4.0

Core

  • Extensions to compose functions fluently.
  • Higher order functions for composing functions
  • Monads (i.e. Result<T, E>, Union<L, R>)
  • Utilities to manage debouncing
  • Utilities to simplify implementation of == and other comparisons
  • Utilities for maths, numerics and strings

Collection

  • More Iterable functions
  • Utilities for comparing the contents of Collections
  • Tuples (Pair, Triple and Quad)

Time

  • Distinct local and UTC date-time types
  • Distinct date and time types
  • Utilities for conversion between time units and rounding date-times
  • Serialization and deserialization of weekdays
8
likes
140
points
8.7k
downloads

Publisher

verified publisherduobase.io

Weekly Downloads

Forus Labs' Core Dart library. Provides sweet syntax sugar for common patterns related to the collections, core sand time.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

crypto, meta

More

Packages that depend on sugar