StacShapeBorder class abstract
Abstract base class for Stac shape borders.
Defines the common interface for all shape border implementations. Each shape border type extends this class and provides its own specific properties and behavior.
// Example usage with RoundedRectangleBorder
StacRoundedRectangleBorder(
borderRadius: StacBorderRadius.all(8.0),
side: StacBorderSide(width: 1.0, color: StacColors.grey),
)
{
"type": "roundedRectangle",
"borderRadius": {"all": 8.0},
"side": {"width": 1.0, "color": "#808080"}
}
- Implemented types
- Available extensions
- Annotations
-
- @JsonSerializable.new()
Constructors
- StacShapeBorder({StacBorderSide? side, required StacShapeBorderType type})
-
Creates a StacShapeBorder with the given properties.
const
-
StacShapeBorder.fromJson(Map<
String, dynamic> json) -
Creates a StacShapeBorder from JSON.
This factory method delegates to the appropriate subclass
based on the "type" field in the JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → StacBorderSide?
-
The border side properties.
final
- type → StacShapeBorderType
-
The type identifier for this shape border.
Must be implemented by subclasses.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
BuildContext context) → OutlinedBorder -
Available on StacShapeBorder, provided by the StacShapeBorderParser extension
-
toJson(
) → dynamic -
Converts this element to a JSON map
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited