save
and other methods not available on my models?DataModel
extensions are syntax sugar and will only work when importing Flutter Data:
import 'package:flutter_data/flutter_data.dart';
If you have trouble with the outputs, try:
flutter pub run build_runner build --delete-conflicting-outputs
VSCode users!
If after generating code you still see errors in your files, try reopening the project. This is not a Flutter Data issue.
Also make sure your dependencies are up to date:
flutter pub upgrade
Not yet.
See https://stackoverflow.com/questions/59248686/how-to-group-mixins-in-dart
No! Despite its name this library does not depend on Flutter at all.
See the example
folder for an, uh, example.
It does depend on Riverpod but this library is exported.
*.g.dart
files (part of your models)main.data.dart
(as a library)