SvgText constructor

SvgText({
  1. void warn(
    1. String
    )?,
})

Create a new text mode.

warn, if present, will be called if any warnings are generated while processing the text element in the production of a ScalableImage.

Implementation

SvgText({void Function(String)? warn})
    : _warn = warn ?? nullWarn,
      super._p() {
  root.x = root.y = const [0.0];
}