NativeTemplateStyle class

Style options for native templates.

Can be used when loading a NativeAd.

Constructors

NativeTemplateStyle({required TemplateType templateType, NativeTemplateTextStyle? callToActionTextStyle, NativeTemplateTextStyle? primaryTextStyle, NativeTemplateTextStyle? secondaryTextStyle, NativeTemplateTextStyle? tertiaryTextStyle, Color? mainBackgroundColor, double? cornerRadius})
Create a NativeTemplateStyle.

Properties

callToActionTextStyle NativeTemplateTextStyle?
The NativeTemplateTextStyle for the call to action.
read / write
cornerRadius double?
The corner radius for the icon view and call to action (iOS only).
read / write
hashCode int
The hash code for this object.
read-onlyoverride
mainBackgroundColor Color?
The background color.
read / write
primaryTextStyle NativeTemplateTextStyle?
The NativeTemplateTextStyle for the primary text.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
secondaryTextStyle NativeTemplateTextStyle?
The NativeTemplateTextStyle for the second row of text in the template.
read / write
templateType TemplateType
The TemplateType to use.
read / write
tertiaryTextStyle NativeTemplateTextStyle?
The NativeTemplateTextStyle for the third row of text in the template.
read / write

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.
override