BMFText constructor

BMFText(
  1. {@required String text,
  2. @required BMFCoordinate position,
  3. Color bgColor,
  4. Color fontColor: Colors.blue,
  5. int fontSize: 12,
  6. BMFTypeFace typeFace,
  7. int alignY: BMFVerticalAlign.ALIGN_CENTER_VERTICAL,
  8. int alignX: BMFHorizontalAlign.ALIGN_CENTER_HORIZONTAL,
  9. double rotate: 0,
  10. int zIndex: 0,
  11. 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);