<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/r-i-p-build-runner-a-deep-dive-into-macros-in-dart-flutter-dneixtdrr" -->

---
title: R.I.P. build_runner: A Deep Dive Into Macros in Dart &amp;...
description: Dart macros offer a powerful alternative to build_runner for Flutter and Dart developers. They enable code generation directly at compile time, eliminating the...
canonical: https://daily.dev/posts/r-i-p-build-runner-a-deep-dive-into-macros-in-dart-flutter-dneixtdrr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: R.I.P. build_runner: A Deep Dive Into Macros in Dart &amp; Flutter | daily.dev
og:description: Dart macros offer a powerful alternative to build_runner for Flutter and Dart developers. They enable code generation directly at compile time, eliminating the...
og:url: https://daily.dev/posts/r-i-p-build-runner-a-deep-dive-into-macros-in-dart-flutter-dneixtdrr
og:image: https://api.daily.dev/og/posts/DnEIxtDrr.png
og:image:alt: R.I.P. build_runner: A Deep Dive Into Macros in Dart &amp; Flutter
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[QuickBird Studios](https://daily.dev/sources/quickbirdstudios)

[Read post](https://api.daily.dev/r/DnEIxtDrr)

# [R.I.P. build\_runner: A Deep Dive Into Macros in Dart & Flutter](https://api.daily.dev/r/DnEIxtDrr "Go to post")

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Dart macros offer a powerful alternative to build\_runner for Flutter and Dart developers. They enable code generation directly at compile time, eliminating the need for separate build steps. Macros lead to faster builds, reduced boilerplate, and enhanced code consistency. They are currently available in the beta and main channels, with stable release expected in 2024\. Macros support various uses, including creating custom annotations and implementing functions like toString. However, they require careful implementation to avoid complexity and hidden behaviors.

[#flutter](/tags/flutter "Check all #flutter posts")[#dart](/tags/dart "Check all #dart posts")

Nov 04, 2024•9m read time•From [quickbirdstudios.com](https://api.daily.dev/r/DnEIxtDrr "quickbirdstudios.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9c74e0bc3f22aed5d1a9317d11235686?_a=AQAEuj9)](https://api.daily.dev/r/DnEIxtDrr "Go to post")

Table of contents

[What do we need 🛠️](https://api.daily.dev/r/DnEIxtDrr "What do we need 🛠️")[What are Macros? 📸](https://api.daily.dev/r/DnEIxtDrr "What are Macros? 📸")[Types of Macros](https://api.daily.dev/r/DnEIxtDrr "Types of Macros")[Conclusion](https://api.daily.dev/r/DnEIxtDrr "Conclusion")

76 Impressions26 Upvotes

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![QuickBird Studios's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1e2ab41bd3a54f1eb328ef68649ebf20)](https://daily.dev/sources/quickbirdstudios)

[QuickBird Studios](https://daily.dev/sources/quickbirdstudios "https://daily.dev/sources/quickbirdstudios")

4 Followers

•

32 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

26

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"R.I.P. build_runner: A Deep Dive Into Macros in Dart & Flutter","url":"https://daily.dev/posts/r-i-p-build-runner-a-deep-dive-into-macros-in-dart-flutter-dneixtdrr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/r-i-p-build-runner-a-deep-dive-into-macros-in-dart-flutter-dneixtdrr"},"datePublished":"2024-11-04T12:37:48.481Z","dateModified":"2024-12-11T08:53:38.623Z","description":"Dart macros offer a powerful alternative to build_runner for Flutter and Dart developers. They enable code generation directly at compile time, eliminating the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9c74e0bc3f22aed5d1a9317d11235686?_a=AQAEuj9","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9c74e0bc3f22aed5d1a9317d11235686?_a=AQAEuj9","isAccessibleForFree":true,"articleSection":"QuickBird Studios","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"QuickBird Studios","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1e2ab41bd3a54f1eb328ef68649ebf20","url":"https://daily.dev/sources/quickbirdstudios"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/r-i-p-build-runner-a-deep-dive-into-macros-in-dart-flutter-dneixtdrr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":26},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"flutter,dart","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"QuickBird Studios","item":"https://daily.dev/sources/quickbirdstudios"},{"@type":"ListItem","position":3,"name":"R.I.P. build_runner: A Deep Dive Into Macros in Dart & Flutter"}]}
```

