BMFText class Null safety
文本
- Inheritance
-
- Object
- BMFOverlay
- BMFText
- Available Extensions
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, double? paragraphSpacing = 2, int? maxLineWidth, int? lineSpacing = 4, BMFTextAlignment? alignment = BMFTextAlignment.center, BMFTextLineBreakMode? lineBreakMode = BMFTextLineBreakMode.charWrapping, int? startLevel = 4, int? endLevel = 21, int zIndex = 0, bool visible = true})
- BMFText构造方法
- BMFText.Android({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-Android构造方法
- BMFText.fromMap(Map map)
- map => BMFText
- BMFText.iOS({required String text, required BMFCoordinate position, Color? bgColor, Color? fontColor = Colors.blue, int? fontSize = 12, BMFTypeFace? typeFace, double? rotate = 0, double? paragraphSpacing = 2, int? maxLineWidth, int? lineSpacing = 4, BMFTextAlignment? alignment = BMFTextAlignment.center, BMFTextLineBreakMode? lineBreakMode = BMFTextLineBreakMode.charWrapping, int? startLevel = 4, int? endLevel = 21, int zIndex = 0, bool visible = true})
- BMFText-iOS构造方法
Properties
- alignment ↔ BMFTextAlignment?
-
文字对齐方式,默认:center
read / write
- 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
- className ↔ String?
-
类名
read / write, inherited
- endLevel ↔ int?
-
文字最大显示层级,默认21
read / write
- fontColor ↔ Color?
-
字体颜色
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
- lineBreakMode ↔ BMFTextLineBreakMode?
-
字符截断类型,默认:charWrapping
read / write
- lineSpacing ↔ int?
-
文字的行间距,默认:4.0f
read / write
- maxLineWidth ↔ int?
-
文字的最大行宽
read / write
- paragraphSpacing ↔ double?
-
字符间距,默认:2.0f
read / write
- position ↔ BMFCoordinate
-
text经纬度
read / write
- rotate ↔ double?
-
旋转角度
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- startLevel ↔ int?
-
文字最小显示层级, 默认4
read / write
- 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 -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited