BMFText.Android constructor Null safety
- {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构造方法
Implementation
BMFText.Android({
required this.text,
required this.position,
this.bgColor,
this.fontColor: Colors.blue,
this.fontSize: 12,
this.typeFace,
this.alignY: BMFVerticalAlign.ALIGN_CENTER_VERTICAL,
this.alignX: BMFHorizontalAlign.ALIGN_CENTER_HORIZONTAL,
this.rotate: 0,
int zIndex: 0,
bool visible: true,
}) : super(zIndex: zIndex, visible: visible);