AdropNativeAsset class

A single media slot of a native ad (a value of AdropNativeProperties.extraAssets, keyed by id). Created by the SDK and read-only for publishers. Rendering and tracking each slot is up to the publisher.

Constructors

AdropNativeAsset({required String id, required String asset, required String creative, String? cover, String? type, required bool isVideo})
const

Properties

asset → String
final
cover → String?
final
creative → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isVideo → bool
Uses type when the server sends it. Otherwise (legacy responses) inferred from cover and the file extension.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String?
Media type of the slot, 'display' | 'video' (server type). Null for responses from older servers.
final

Methods

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

Operators

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