How to generate data files:
Creating a new data file:
Create a new file for your data type in the
/data
directory with the
.dart
extension
Create an abstract class for your data type (see existing files for examples)
Add the new data type to
/data/serializers.dart
4 Run:
dart run build_runner build
from DWDS root (this will generate the
.g.dart
file)
To update an existing data file:
Make your changes
Run:
dart run build_runner clean
from DWDS root
Run:
dart run build_runner build
from DWDS root