Wedzera is an extension toolkit for Dart, It contains many convenient, functional, and easy-to-use functions.
Iterables is an extension class for
Maps is an extension class for
Pair represents a generic pair of two values.
Triple represents a triad of values.
Result a discriminated union that encapsulates a successful outcome with a
value of type T or a failure with an arbitrary
ErrorAndStacktrace an Object which containing both an error and
the corresponding stack trace.
Strings is an extension class for
Transformations contains a lot of practical static method for
R Function(T) transform.
Predicates contains a lot of practical static method for
bool Function(T) predicate.
measureTimeMillis executes the given block and returns elapsed time in milliseconds.
measureTimeMicros executes the given block and returns elapsed time in microseconds.
All notable changes to this project will be documented in this file.
[0.1.0] - 2020-03-22 #
Extend a lot of practical methods for Iterable/Map, these methods can make you more convenient for functional programming, such as Iterable#scan, Iterable#groupingBy, Map#getOrPut, etc.
Added some map/filter static methods commonly used in functional programming.
Extend a lot of practical methods for String, such as String#toIntOrNull, etc.
Added Pair/Triple class and added its conversion function to Map(MapEntry)/List.
Added Result class.
Added ErrorAndStacktrace class.
In order to more easily detect the execution time of code blocks, you can use measureTimeMillis() or measureTimeMicros().
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: wedzera: ^0.1.0
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:wedzera/collection.dart'; import 'package:wedzera/core.dart'; import 'package:wedzera/system.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jul 14, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.8.4
- pana: 0.13.15
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
wedzera.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
|Dart SDK||>=2.7.0 <3.0.0|