@@ -16,56 +16,56 @@ The [`SfTreemap`](https://pub.dev/documentation/syncfusion_flutter_treemap/lates
1616{% tabs %}
1717{% highlight Dart %}
1818
19- late List<PopulationModel > _ source;
20- late String _ semanticLabel = 'Asia is the most populated continent and Australia is the least populated continent';
21- 
22- @override  
23- void initState() {
24-    _ source = const <PopulationModel >[ 
25-       PopulationModel('Asia', 456.07),
26-       PopulationModel('Africa', 121.61),
27-       PopulationModel('Europe', 74.64),
28-       PopulationModel('North America', 57.9),
29-       PopulationModel('South America', 42.25),
30-       PopulationModel('Australia', 2.54),
31-    ] ;
32-    super.initState();
33- }
34- 
35- @override  
36- void dispose() {
37-   _ source.clear();
38-   super.dispose();
39- }
40- 
41- @override  
42- Widget build(BuildContext context) {
43-   return Scaffold(
44-      body: Semantics(
45-         label: 'Syncfusion Flutter Treemap',
46-         value: _ semanticLabel,
47-         child: Column(
48-           children: [ 
49-             Expanded(
50-               child: SfTreemap(
51-                 dataCount: _ source.length,
52-                 weightValueMapper: (int index) {
53-                   return _ source[ index] .populationInCrores;
54-                 },
55-                 levels: [ 
56-                   TreemapLevel(
57-                     groupMapper: (int index) {
58-                       return _ source[ index] .continent;
59-                     },
60-                   ),
61-                 ] ,
19+   late List<PopulationModel > _ source;
20+   late String _ semanticLabel = 'Asia is the most populated continent and Australia is the least populated continent';
21+ 
22+   @override  
23+   void initState() {
24+     _ source = const <PopulationModel >[ 
25+         PopulationModel('Asia', 456.07),
26+         PopulationModel('Africa', 121.61),
27+         PopulationModel('Europe', 74.64),
28+         PopulationModel('North America', 57.9),
29+         PopulationModel('South America', 42.25),
30+         PopulationModel('Australia', 2.54),
31+     ] ;
32+     super.initState();
33+   }
34+ 
35+   @override  
36+   void dispose() {
37+     _ source.clear();
38+     super.dispose();
39+   }
40+ 
41+   @override  
42+   Widget build(BuildContext context) {
43+     return Scaffold(
44+       body: Semantics(
45+           label: 'Syncfusion Flutter Treemap',
46+           value: _ semanticLabel,
47+           child: Column(
48+             children: [ 
49+               Expanded(
50+                 child: SfTreemap(
51+                   dataCount: _ source.length,
52+                   weightValueMapper: (int index) {
53+                     return _ source[ index] .populationInCrores;
54+                   },
55+                   levels: [ 
56+                     TreemapLevel(
57+                       groupMapper: (int index) {
58+                         return _ source[ index] .continent;
59+                       },
60+                     ),
61+                   ] ,
62+                 ),
6263              ),
63-             ) ,
64-           ] ,
64+             ] ,
65+           ) ,
6566        ),
66-       ),
67-    );
68- }
67+     );
68+   }
6969
7070class PopulationModel {
7171  const PopulationModel(this.continent, this.populationInCrores);
0 commit comments