Content class

Describes a content.

To track a content, first track MatomoTracker.trackContentImpression, then, if the user interacts with it, track MatomoTracker.trackContentInteraction.

Read more about Content Tracking.

Constructors

Content({required String name, String? piece, String? target})
Describes a block of content.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the content.
final
piece String?
The actual content piece.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target String?
The target of the content.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, String>
toString() String
A string representation of this object.
inherited

Operators

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