BMFText constructor
- {@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构造方法
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,
}) : assert(text != null),
assert(position != null),
super(zIndex: zIndex, visible: visible);