0

プロジェクトにインジェクタブルを使用しようとしていますが、コードのこの部分を試すと:

@injectable
abstract class TodoRepository {
  Future<Either<Failure, DayTodosEntity>> getDayDodo(DateEntity date);
}  

run build_runnerこのエラーが発生した後:

[TodoRepository] is abstract and can not be registered directly! 
if it has a factory or a create method annotate it with @factoryMethod

何が欠けているのか理解できません。

4

1 に答える 1