EditorText constructor
const
EditorText({})
Implementation
const EditorText({
required this.text,
required this.offset,
this.fontSizePx = 14,
this.textColor = Colors.black,
this.fontName = '',
this.textAlign = TextAlign.left,
}) : assert(fontSizePx > 0, 'fontSizePx must be greater than 0'),
assert(
textAlign == TextAlign.left ||
textAlign == TextAlign.center ||
textAlign == TextAlign.right,
'textAlign must be left, center or right',
);