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.
getter/setter pair
cornerRadius ↔ double?
The corner radius for the icon view and call to action (iOS only).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
mainBackgroundColor ↔ Color?
The background color.
getter/setter pair
primaryTextStyle ↔ NativeTemplateTextStyle?
The NativeTemplateTextStyle for the primary text.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryTextStyle ↔ NativeTemplateTextStyle?
The NativeTemplateTextStyle for the second row of text in the template.
getter/setter pair
templateType ↔ TemplateType
The TemplateType to use.
getter/setter pair
tertiaryTextStyle ↔ NativeTemplateTextStyle?
The NativeTemplateTextStyle for the third row of text in the template.
getter/setter pair

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