@@ -77,11 +77,11 @@ abstract class Layer {
7777 /// any graphics drawn by this layer or any child layers (optional).
7878 String ? tintColorHex;
7979
80- /// [Color ] that is multiplied with any graphics drawn by this layer or any
80+ /// [ColorData ] that is multiplied with any graphics drawn by this layer or any
8181 /// child layers (optional).
8282 ///
8383 /// Parsed from [tintColorHex] , will be null if parsing fails for any reason.
84- Color ? tintColor;
84+ ColorData ? tintColor;
8585
8686 /// The opacity of the layer as a value from 0 to 1. Defaults to 1.
8787 double opacity;
@@ -420,7 +420,7 @@ class TileLayer extends Layer {
420420}
421421
422422class ObjectGroup extends Layer {
423- static const defaultColor = Color .rgb (160 , 160 , 164 , 255 );
423+ static const defaultColor = ColorData .rgb (160 , 160 , 164 , 255 );
424424 static const defaultColorHex = '%a0a0a4' ;
425425
426426 /// topdown (default) or index (indexOrder).
@@ -433,12 +433,12 @@ class ObjectGroup extends Layer {
433433 /// this group. (defaults to gray (“#a0a0a4”))
434434 String colorHex;
435435
436- /// [Color ] used to display the objects in this group.
436+ /// [ColorData ] used to display the objects in this group.
437437 /// (defaults to gray (“#a0a0a4”))
438438 ///
439439 /// Parsed from [colorHex] , will be fallback to [defaultColor] if parsing
440440 /// fails for any reason.
441- Color color;
441+ ColorData color;
442442
443443 ObjectGroup ({
444444 super .id,
@@ -474,11 +474,11 @@ class ImageLayer extends Layer {
474474 /// (optional).
475475 String ? transparentColorHex;
476476
477- /// [Color ] to be rendered as transparent (optional).
477+ /// [ColorData ] to be rendered as transparent (optional).
478478 ///
479479 /// Parsed from [transparentColorHex] , will be null if parsing fails for any
480480 /// reason.
481- Color ? transparentColor;
481+ ColorData ? transparentColor;
482482
483483 /// Whether or not to repeat the image on the X-axis
484484 bool repeatX;
0 commit comments