StacWidget class

Base class for all STAC widgets This is a concrete implementation that can hold raw JSON data, used primarily by JSON converters for deserialization

Inheritance
Implementers
Annotations
  • @JsonSerializable()

Constructors

StacWidget.new({Map<String, dynamic>? jsonData})
Creates a StacWidget that represents a widget.
const
StacWidget.fromJson(Map<String, dynamic> json)
Creates a new widget from a JSON map
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
jsonData Map<String, dynamic>?
Raw JSON data for this widget
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of the widget
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this widget to a JSON map
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited