BMFText constructor Null safety
- {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构造方法
Implementation
BMFText({
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);