Error: A value of type 'List<dynamic>' can't be returned from the function 'symbol' because it has a return type of 'PbList<ProtoOALightSymbol>'
JasperEssien2 opened this issue · 0 comments
JasperEssien2 commented
It seems the mismatch is caused by protobuf generating a list with type PbList<E>
while the GeneratedMessage
abstract class and FieldSet
class _$getList<T>()
method signature returns a List<T>
type.
Here's the GeneratedMessage
class method declaration.
List<T> $_getList<T>(int index) => _fieldSet._$getList<T>(index);
Meanwhile, the generated file
@$pb.TagNumber(3)
$pb.PbList<$1.ProtoOAAsset> get asset => $_getList(2);