# reflectable

> Reflection for Dart without dart:mirrors, generated from the capabilities you ask for

Source: https://talira.ai/catalog/reflectable-h73cfnjk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / reflection](https://talira.ai/categories/libraries/reflection), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

reflectable gives Dart programs much of what `dart:mirrors` offers without depending on it: you declare up front, as **capabilities**, which reflective operations you need on which classes, and its builder package `reflectable_builder` generates the code that provides exactly that, so programs stay smaller. Using it at run time looks very much like `dart:mirrors`, and anything outside the declared capabilities throws `NoSuchCapabilityError`. Code generation runs through the `build` package and [build_runner](https://talira.ai/catalog/build-runner-snjaeg1d.md). Google makes it.

## Links

- GitHub: https://github.com/google/reflectable.dart

## Problems it solves

- use reflection in Dart where dart:mirrors isn't available
- look up and invoke class members by name at run time in a Dart app
- keep reflection code small by generating only what my Dart program needs

## Features

- reflection modelled on dart:mirrors without importing it
- capabilities that limit which reflective operations are supported, and on which objects
- code generation through reflectable_builder and build_runner
- NoSuchCapabilityError for reflection outside the declared capabilities

## Limitations

- Reflection on functions and closures isn't supported, apart from named function types used as type annotations.[^1]
- Private declarations are mostly not supported.[^1]
- Type arguments of generic types are only available in some statically resolved cases, and libraryDependencies isn't implemented.[^1]

## Trust

Overall: 0.41 out of 1.
Signals: maintenance 0.46, adoption 0.52, momentum 0.17, community 0.50, backing 0.55, extensibility 0.00.

- last commit 2 months ago
- 1 commits in the last 90 days
- 386 GitHub stars
- 17 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Related

- Works with [build_runner](https://talira.ai/catalog/build-runner-snjaeg1d.md)

## Sources

[^1]: https://github.com/google/reflectable.dart/blob/master/packages/reflectable/README.md (checked 28 Nov 2026)
[^2]: https://github.com/google/reflectable.dart/blob/master/LICENSE (checked 28 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
