A utils package containing some functional programming utils.


  • add tests
  • add docs


  • Either<L, R>: a value that can be either left or right;
  • Lazy<T>: a lazily evaluated value;
  • Optional<T>: an optional value;
  • Result<V, E>: the result value, similar to Either<L, R>, but has left being assigned to value and right assigned to error. This is similar to the Result in rust, but diffferent from the convention in dartz;
  • ServiceStore: a service locator similar to the one GetIt or Get;

Getting started

Just add this to the pubspec and then use the things.


const like = 'sample';

Additional information


Support for doing something awesome.