grow_extensions
Fancy yet basically useless extensions for dart language, which lets you write more declaratively/functional code. We use these throughout multiple applications that we build to write a more maintanable and reusable code.
Feedback and contributions are welcomed.
Instalation
In the dependencies: section of your pubspec.yaml, add the following line:
grow_extensions: <latest_version>
Usage
Just start using it right away:
export 'package:grow_extensions/grow_extensions.dart';
final int two = 1.add(1); // 2
Motivation
The main motivation is to create a set of reusable extension function that will bring everyday joy from language like kotlin or javascript utilizing more declaratively/functional code.
By being more declarative than imperative the final code will be in my opinion more readable and by that a bit cleaner.
Many of the function were inspired by kotlin language and functional javascript library ramda.
Documentation
Documentation is generated by dartdoc in doc folder.
License
MIT
Test
Run all tests:
flutter test
Run a specific test file:
flutter test test/num_extension_test.dart
Run tests with coverage:
flutter test --coverage