草庐IT

ObjectChangeType

全部标签

flutter - 编译时间错误 : Type arguments in partial instantiations must be instantiated and are therefore not allowed to depend on type parameters

当我尝试调用listenEventReducer时,出现了这个奇怪的错误。该方法知道类型,但仍然不确定我哪里出错了。import'package:test/test.dart';enumObjectChangeType{added,modified,removed}typedefUpdateItem=TFunction(ToldItem,TnewItem);T_defaultUpdate(ToldItem,TnewItem)=>newItem;abstractclassListenEventItem{Stringgetid;ObjectChangeTypegetchangeType;}

flutter - 编译时间错误 : Type arguments in partial instantiations must be instantiated and are therefore not allowed to depend on type parameters

当我尝试调用listenEventReducer时,出现了这个奇怪的错误。该方法知道类型,但仍然不确定我哪里出错了。import'package:test/test.dart';enumObjectChangeType{added,modified,removed}typedefUpdateItem=TFunction(ToldItem,TnewItem);T_defaultUpdate(ToldItem,TnewItem)=>newItem;abstractclassListenEventItem{Stringgetid;ObjectChangeTypegetchangeType;}