SuspendConfig class

天目悬浮广告样式配置,所有字段均有默认值,与天目SDK默认行为一致

Constructors

SuspendConfig({String? fontColor, double fontSize = 0, bool textShowEllipsis = true, bool textAutoScroll = true, bool hideBackground = false, int imagePadding = 0, String backgroundColor = '#d1d1d1', int closeWidth = 0, int closeHeight = 0, bool closeHide = false, int logoWidth = 0, int logoHeight = 0, bool logoHide = false})

Properties

backgroundColor ↔ String
背景色,格式如"#d1d1d1"
getter/setter pair
closeHeight ↔ int
关闭按钮高,单位dp,0使用天目默认值
getter/setter pair
closeHide ↔ bool
是否隐藏关闭按钮
getter/setter pair
closeWidth ↔ int
关闭按钮宽,单位dp,0使用天目默认值
getter/setter pair
fontColor ↔ String?
文字颜色,null使用天目默认值,格式如"#ffffff"
getter/setter pair
fontSize ↔ double
文字大小,0使用天目默认值
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hideBackground ↔ bool
是否隐藏背景
getter/setter pair
imagePadding ↔ int
纯图模式图片内边距,单位dp
getter/setter pair
logoHeight ↔ int
广告角标高,单位dp,0使用天目默认值
getter/setter pair
logoHide ↔ bool
是否隐藏广告角标
getter/setter pair
logoWidth ↔ int
广告角标宽,单位dp,0使用天目默认值
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textAutoScroll ↔ bool
内容是否滚动
getter/setter pair
textShowEllipsis ↔ bool
内容结尾是否显示省略号
getter/setter pair

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