DFTextSprite constructor

DFTextSprite(
  1. String text, {
  2. double fontSize = 14,
  3. Color color = const Color(0xFFFFFFFF),
  4. Color background = const Color(0x00FFFFFF),
  5. DFSize size = const DFSize(80, 20),
})

创建文本精灵

Implementation

DFTextSprite(this.text,
    {this.fontSize = 14,
    this.color = const Color(0xFFFFFFFF),
    this.background = const Color(0x00FFFFFF),
    DFSize size = const DFSize(80, 20)})
    : super(position: DFPosition(0, 0), size: size);