Open anilkumarmeena opened 2 years ago
Is there going to be a fix soon for the upcoming versions?
incase anyone else ends up here: https://github.com/google/charts/issues/651
you must to set the type like this
charts.PieChart
Error comming ==> type 'List
' is not a subtype of type 'List ?' in type cast Please update the type or typecasting. solution1. (/lib/src/chart/pie/arcrenderer.dart line 31). const arcElementsKey = AttributeKey<List
>('ArcRenderer.elements'); can change Object to dynamic will solve it solution 2. we can change where typecasting is present.
its gives me another errors while i set it up according to your solutions
type 'ArcRenderer
Error comming ==> type 'List' is not a subtype of type 'List?' in type cast Please update the type or typecasting. solution1. (/lib/src/chart/pie/arcrenderer.dart line 31). const arcElementsKey = AttributeKey
('ArcRenderer.elements'); can change Object to dynamic will solve it solution 2. we can change where typecasting is present.
its gives me another errors while i set it up according to your solutions type 'ArcRenderer' is not a subtype of type 'SeriesRenderer?' in type cast
Post your PieChart Code so.
Error comming ==> type 'List<ArcRendererElement>' is not a subtype of type 'List<ArcRendererElement
Please update the type or typecasting. solution1. (/lib/src/chart/pie/arcrenderer.dart line 31). const arcElementsKey = AttributeKey<List<ArcRendererElement
solution 2. we can change where typecasting is present.