You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all!
i'm using this example trying to generate an entity with @freezed annotation.
I added the neccessary dependencies to pubspec.yml and modified the Task class as follow
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:floor/floor.dart';
part 'task.freezed.dart';
@freezed
class Task with _$Task {
@entity
factory Task(
@PrimaryKey(autoGenerate: true)
int? id,
String message,
) = _Task;
}
the output I get is: There are no entities added to the database annotation.
what am I missing here, please?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all!
i'm using this example trying to generate an entity with @freezed annotation.
I added the neccessary dependencies to pubspec.yml and modified the Task class as follow
the output I get is: There are no entities added to the database annotation.
what am I missing here, please?
Beta Was this translation helpful? Give feedback.
All reactions