BMFText class Null safety

文本

Android独有

Inheritance
Available Extensions

Constructors

BMFText({required String text, required dynamic position, dynamic bgColor, dynamic fontColor = Colors.blue, int? fontSize = 12, BMFTypeFace? typeFace, int? alignY = BMFVerticalAlign.ALIGN_CENTER_VERTICAL, int? alignX = BMFHorizontalAlign.ALIGN_CENTER_HORIZONTAL, double? rotate = 0, int zIndex = 0, bool visible = true})
BMFText构造方法
BMFText.fromMap(Map map)
map => BMFText

Properties

alignX ↔ int?
文字覆盖物水平对齐方式 ALIGN_LEFT | ALIGN_RIGHT | ALIGN_CENTER_HORIZONTAL
read / write
alignY ↔ int?
文字覆盖物垂直对齐方式 ALIGN_TOP | ALIGN_BOTTOM | ALIGN_CENTER_VERTICAL
read / write
bgColor ↔ dynamic
背景色
read / write
fontColor ↔ dynamic
字体颜色
read / write
fontSize ↔ int?
字体大小
read / write
hashCode → int
The hash code for this object.
read-only, inherited
Id → String
获取id
@Deprecated('Use `id` method instead since 3.2.0'), read-only, inherited
id → String
获取id since 3.2.0
read-only, inherited
position ↔ dynamic
text经纬度
read / write
rotate ↔ double?
旋转角度
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
text ↔ String
文本
read / write
typeFace BMFTypeFace?
typeface
read / write
visible ↔ bool?
overlay是否可见
read / write, inherited
zIndex ↔ int?
元素的堆叠顺序
read / write, inherited

Methods

fromMap(Map map) → dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toMap() → Map<String, Object?>
override
toString() → String
A string representation of this object.
inherited

Operators

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