CanvasTextDrawingStyles constructor

CanvasTextDrawingStyles({
  1. CanvasDirection? direction,
  2. String? font,
  3. CanvasFontKerning? fontKerning,
  4. CanvasTextAlign? textAlign,
  5. CanvasTextBaseline? textBaseline,
})

Implementation

factory CanvasTextDrawingStyles({
  _i3.CanvasDirection? direction,
  _i2.String? font,
  _i3.CanvasFontKerning? fontKerning,
  _i3.CanvasTextAlign? textAlign,
  _i3.CanvasTextBaseline? textBaseline,
}) =>
    CanvasTextDrawingStyles._(
      direction: direction?.name ?? _i6.undefined,
      font: font,
      fontKerning: fontKerning?.name ?? _i6.undefined,
      textAlign: textAlign?.name ?? _i6.undefined,
      textBaseline: textBaseline?.name ?? _i6.undefined,
    );