Search packages, repositories and app categories

Package detailsv1.2.0

fpdart

Functional programming in Dart and Flutter. All the main functional programming types and patterns fully documented, tested, and with examples.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
284K
Likes
1.2K
Pub points
150

Install package

flutter pub add fpdart

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

fpdart is a Dart package that brings functional programming concepts to Dart and Flutter development. It provides essential functional types like Option, Either, and List, along with utilities for immutable data manipulation, error handling, and composition. Fully documented, tested, and example-rich, it enables clean, predictable code through patterns such as pure functions, immutability, and algebraic data types. Ideal for developers seeking robust, maintainable codebases using FP principles.

Use cases

  • Building immutable state management
  • Error handling with Either
  • Functional data transformations
  • Creating pure utility functions
  • Writing testable business logic

Key features

  • Option and Either types
  • Immutable data structures
  • Function composition utilities
  • Comprehensive documentation
  • Extensive test coverage

Suitable for

  • Dart developers interested in functional programming
  • Teams aiming for predictable state management
  • Projects requiring robust error handling
  • Flutter apps needing clean architecture
  • Developers writing reusable, testable code

Considerations

  • Learning curve for non-functional programmers
  • May require architectural adjustments
  • Not suitable for performance-critical low-level code
  • Limited ecosystem integration beyond core FP patterns
  • Requires understanding of functional concepts like currying and functors

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

packages/fpdart/README.md

Categories

Source repository

Projects using this package

Rankings