BMFText class

文本

Android独有

Inheritance

Constructors

BMFText({@required String text, @required BMFCoordinate position, Color bgColor, Color 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 ↔ Color
背景色
read / write
fontColor ↔ Color
字体颜色
read / write
fontSize ↔ int
字体大小
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
Id → String
获取id
read-only, inherited
methodChannel ↔ MethodChannel
获取channdel
read / write, inherited
position ↔ BMFCoordinate
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
map -> dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() → Map<String, Object>
model -> map
override
toString() → String
Returns a string representation of this object.
inherited
updateAlign(int alignX, int alignY) → Future<bool>
更新Text 文字覆盖对齐方式 [...]
updateBgColor(Color bgColor) → Future<bool>
更新Text背景颜色 [...]
updateFontColor(Color fontColor) → Future<bool>
更新Text字体颜色 [...]
updateFontSize(int fontSize) → Future<bool>
更新Text 字体大小 [...]
updatePosition(BMFCoordinate position) → Future<bool>
更新Text经纬度 [...]
updateRotate(double rotate) → Future<bool>
更新Text 旋转角度 [...]
updateText(String text) → Future<bool>
更新Text文本 [...]
updateTypeFace(BMFTypeFace typeFace) → Future<bool>
更新Text typeFace [...]

Operators

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