Source code generation in Flutter & Dart (Part 1): Reflection and code gen

This page summarizes the projects mentioned and recommended in the original post on dev.to

Shorebird - Patch in minutes not days
Shorebird powers rapid development with CodePush and optimized CI pipelines designed specifically for Flutter.
shorebird.dev
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. json_serializable.dart

    Generates utilities to aid in serializing to/from JSON.

    However, we cannot do this kind of JSON de-serialization in Flutter. Without reflection, we need to consider other approaches for these same tasks. For instance, the package json_serializable uses source code generation for decorating classes with methods to serialize and de-serialize JSON strings.

  2. Shorebird

    Shorebird - Patch in minutes not days. Shorebird powers rapid development with CodePush and optimized CI pipelines designed specifically for Flutter.

    Shorebird logo
  3. Jackson JSON Processor

    Main Portal page for the Jackson project

    In this code example, the Jackson mapper uses reflection to find out the type of class it should use to de-serialize the JSON string:

  4. mockito

    Discontinued Mockito-inspired mock library for Dart (by dart-archive)

    Mockito allows developers to create mock objects from existing classes, stub their methods and verify or assert their behavior during tests.

  5. build

    A build system for Dart written in Dart (by dart-lang)

    build: "Defines the basic pieces of how a build happens and how they interact."

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • I feel like I made a mistake investing professionally into Flutter

    2 projects | news.ycombinator.com | 12 Aug 2023
  • Dart 3.0: Best New Features & Why You Should Care

    2 projects | /r/FlutterDev | 17 May 2023
  • The state of cross-platform app development

    1 project | /r/androiddev | 15 Jan 2023
  • 🚀 Building a Fullstack App with dart_frog and Flutter in a Monorepo - Part 3

    2 projects | dev.to | 1 Jan 2023
  • How do you deal with serialization?

    2 projects | /r/FlutterDev | 1 Sep 2022

Did you know that Dart is
the 20th most popular programming language
based on number of references?