TextRenderable constructor
TextRenderable({})
Create a text renderable
Implementation
TextRenderable({
required this.text,
TextStyle? textStyle,
this.textAlign = TextAlign.center,
super.position,
super.rotation,
super.scale,
super.layer,
super.zOrder,
super.visible,
super.opacity,
}) : textStyle =
textStyle ?? const TextStyle(color: Colors.white, fontSize: 16);