lean_extensions 0.14.2 copy "lean_extensions: ^0.14.2" to clipboard
lean_extensions: ^0.14.2 copied to clipboard

A collection of extension methods without flutter dependency. Also includes some python-like functionality and json converters for easy validation

Lean Extensions #

style: very good analysis Powered by Mason License: MIT

A Very Good Project created by Very Good CLI.

Installation 💻 #

❗ In order to start using Lean Extensions you must have the Dart SDK installed on your machine.

Add lean_extensions to your pubspec.yaml:

dependencies:
  lean_extensions:

Install it:

dart pub get

Example #


// some python-like functionality
for (final i in range(10)) {
  await sleep(i);
}

// some converters for easy (de)serialization
const converter = AnyDateConverter();
final date1 = converter.fromJson('25 Nov 2023');
if (date1 == DateTime(2023, 11, 25)) {
  // easily deserializes common types
}

// some extensions with common functionality
final anInt = '1'.toInt(); // resolves to 1

// and a touch of magic
final anotherInt = 'one'.toInt(); // resolves to 1 as well

1
likes
130
pub points
51%
popularity

Publisher

verified publisherel-darto.net

A collection of extension methods without flutter dependency. Also includes some python-like functionality and json converters for easy validation

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

any_date, collection, english_numerals, json_annotation, meta

More

Packages that depend on lean_extensions