TextLayoutModel class

Constructors

TextLayoutModel(String text, {Color textColor = Colors.black, Color textBackgroundColor = Colors.transparent, double textSize = 14.0, TextLayoutBackgroundModel backgroundModel = TextLayoutBackgroundModel.rrect, double backGroundRadius = 8, Border border, bool isTextColorRandom = false, Icon icon, Image imag, bool isShowCirPoint = false})

Properties

backgroundModel TextLayoutBackgroundModel
背景的模式
read / write
backGroundRadius double
边框的圆角
read / write
border Border
指定单独的边框
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
icon Icon
文字前的小图标
read / write
iconColor Color
文字前的小圆点颜色
read / write
imag Image
文字前的小图片
read / write
isShowCirPoint bool
是否显示文字前小圆点
read / write
isTextColorRandom bool
文字颜色是否随机 在配置为true或者是textColor为null时生效
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
text String
文字内容
read / write
textBackgroundColor Color
背景颜色
read / write
textColor Color
文字颜色
read / write
textSize double
字体大小
read / write

Methods

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

Operators

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