From e8a0d4b186d99ae25c96ac110343217b3e0e4044 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=99=E5=A8=87?=
Date: Sat, 9 Mar 2024 11:29:20 +0800
Subject: [PATCH] comment the unimplemented `ListStyle` and format
---
lib/src/model/geo_style.dart | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/lib/src/model/geo_style.dart b/lib/src/model/geo_style.dart
index 5045eb9..bfbeaff 100644
--- a/lib/src/model/geo_style.dart
+++ b/lib/src/model/geo_style.dart
@@ -295,8 +295,10 @@ class BalloonStyle {
/// where alpha=0x7f, blue=0xff, green=0x00, and red=0x00. The default is
/// opaque white (ffffffff).
int? bgColor;
+
/// Foreground color for text. The default is black (ff000000).
int? textColor = 0xff000000;
+
/// Text displayed in the balloon. If no text is specified, Google Earth
/// draws the default balloon (with the Feature in boldface, the
/// Feature , links for driving directions, a white background,
@@ -304,18 +306,19 @@ class BalloonStyle {
/// specified).
///
/// You can add entities to the tag using the following format to
- /// refer to a child element of Feature: $[name], $[description], $[address],
- /// $[id], $[Snippet]. Google Earth looks in the current Feature for the
+ /// refer to a child element of Feature: name, description, address,
+ /// id, Snippet. Google Earth looks in the current Feature for the
/// corresponding string entity and substitutes that information in the
/// balloon. To include To here - From here driving directions in the balloon,
- /// use the $[geDirections] tag. To prevent the driving directions links from
+ /// use the geDirections tag. To prevent the driving directions links from
/// appearing in a balloon, include the element with some content, or
- /// with $[description] to substitute the basic Feature .
+ /// with description to substitute the basic Feature .
///
- /// For example, in the following KML excerpt, $[name] and $[description]
+ /// For example, in the following KML excerpt, name and description
/// fields will be replaced by the and fields found in
/// the Feature elements that use this BalloonStyle:
String text = '';
+
/// If is default, Google Earth uses the information
/// supplied in to create a balloon . If is hide,
/// Google Earth does not display the balloon. In Google Earth, clicking
@@ -337,7 +340,8 @@ class BalloonStyle {
}
@override
- String toString() => "BalloonStyle[${[bgColor, textColor, text, show].join(",")}]";
+ String toString() =>
+ "BalloonStyle[${[bgColor, textColor, text, show].join(",")}]";
@override
int get hashCode => hashObjects([
@@ -348,8 +352,8 @@ class BalloonStyle {
]);
}
-class ListStyle {
- ListStyle() {
- throw UnimplementedError();
- }
-}
+// class ListStyle {
+// ListStyle() {
+// throw UnimplementedError();
+// }
+// }