BMFText.withMap constructor

BMFText.withMap(
  1. Map map
)

Implementation

BMFText.withMap(Map map) {
  if (null == map) {
    return;
  }

  super.fromMap(map);

  this.text = map['text'];
  this.position = BMFCoordinate.coordinate().fromMap(map['position']);
  this.bgColor = ColorUtil.hexToColor(map['bgColor']);
  this.fontColor = ColorUtil.hexToColor(map['fontColor']);
  this.fontSize = map['fontSize'];
  this.typeFace = BMFTypeFace.bmfTypeFace().fromMap(map['typeFace']);
  this.alignX = map['alignX'];
  this.alignY = map['alignY'];
  this.rotate = map['rotate'];
}