NativeAdStyle class

Configuration class for native ad styling and layout options.

Constructors

NativeAdStyle({EdgeInsets? margin, EdgeInsets? padding, Color? backgroundColor, double? cornerRadius, Border? border, TextStyle? headlineTextStyle, TextStyle? bodyTextStyle, TextStyle? advertiserTextStyle, TextStyle? priceTextStyle, TextStyle? storeTextStyle, NativeAdButtonStyle? callToActionStyle, Color? starRatingColor, NativeAdMediaStyle? mediaStyle, NativeAdAttributionStyle? attributionStyle})
const
NativeAdStyle.defaultStyle()
Creates a default style configuration
factory

Properties

advertiserTextStyle TextStyle?
Text style for the advertiser name
final
attributionStyle NativeAdAttributionStyle?
Ad attribution label style
final
backgroundColor Color?
Background color of the ad container
final
bodyTextStyle TextStyle?
Text style for the body text
final
border Border?
Border configuration
final
callToActionStyle NativeAdButtonStyle?
Call to action button style
final
cornerRadius double?
Corner radius for the ad container
final
hashCode int
The hash code for this object.
no setterinherited
headlineTextStyle TextStyle?
Text style for the headline
final
margin EdgeInsets?
Margin around the entire ad view
final
mediaStyle NativeAdMediaStyle?
Media view configuration
final
padding EdgeInsets?
Padding inside the ad container
final
priceTextStyle TextStyle?
Text style for the price
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
starRatingColor Color?
Star rating bar color
final
storeTextStyle TextStyle?
Text style for the store name
final

Methods

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

Operators

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