PointStyle class
Represents the style of a point.
The PointStyle class provides methods to convert the style to a map, JSON, and a string representation. It also supports copying the style with optional new size and color values.
Constructors
- PointStyle({double size = 4, Color color = Colors.white})
-
Creates a new instance of the PointStyle class.
const
- PointStyle.fromJson(String source)
-
Creates a PointStyle object from a JSON string.
factory
-
PointStyle.fromMap(Map<
String, dynamic> map) -
Creates a PointStyle object from a map.
factory
Properties
Methods
-
copyWith(
{double? size, Color? color}) → PointStyle - Creates a copy of the PointStyle object with the specified properties overridden.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Converts the PointStyle object to a JSON string.
-
toMap(
) → Map< String, dynamic> - Converts the PointStyle object to a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited