flutter-code-gen

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Code Generation Guidelines

代码生成指南

  • Generate code for:
    • Mappable classes
    • JSON serialization
    • Other generated code
  • Use this command for code generation:
    dart run build_runner build --delete-conflicting-outputs
  • Run code generation after:
    • Adding new Mappable classes
    • Modifying existing Mappable classes
  • 可针对以下场景生成代码:
    • Mappable类
    • JSON序列化
    • 其他需生成的代码
  • 使用如下命令执行代码生成:
    dart run build_runner build --delete-conflicting-outputs
  • 以下操作完成后需运行代码生成:
    • 新增Mappable类
    • 修改现有Mappable类