FLUTTER ECOSYSTEM

functional_data

Annotations and helpers for lenses for code generated with the `function_data_generator` package.

Latest version
1.2.0
30-day downloads
124K
Likes
19
Pub points
150

Package Overview

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

Overview

FunctionalData is a Dart package that provides annotations and utility helpers for creating lenses—functional programming constructs used to access and modify nested data structures. It works in conjunction with the `function_data_generator` code generator to automatically produce boilerplate-free, immutable data classes with powerful update capabilities. The package enables safe, composable updates to deeply nested objects without mutation, promoting functional programming principles in Flutter and Dart applications. Ideal for state management and data transformation workflows.

Use cases
  • Immutable state updates
  • Nested data manipulation
  • State management in Flutter apps
  • Functional programming patterns
  • Code generation for data classes
Key features
  • Automatic lens generation
  • Immutability support
  • Deep nested updates
  • Type-safe transformations
  • Integration with code generators
Suitable for
  • Developers using functional programming
  • Flutter apps with complex state
  • Teams prioritizing immutability
  • Code generation workflows
  • Data-heavy applications
Considerations
  • Requires `function_data_generator`
  • Learning curve for lenses
  • Limited runtime reflection
  • Not suitable for simple data models
  • Additional build step needed
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add functional_data

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects