CanvasText constructor

CanvasText({
  1. void fillText(
    1. String,
    2. num,
    3. num, [
    4. num?,
    ])?,
  2. TextMetrics measureText(
    1. String
    )?,
  3. void strokeText(
    1. String,
    2. num,
    3. num, [
    4. num?,
    ])?,
})

Implementation

factory CanvasText({
  void Function(
    _i2.String,
    _i2.num,
    _i2.num, [
    _i2.num?,
  ])? fillText,
  _i3.TextMetrics Function(_i2.String)? measureText,
  void Function(
    _i2.String,
    _i2.num,
    _i2.num, [
    _i2.num?,
  ])? strokeText,
}) =>
    CanvasText._(
      fillText: fillText == null ? null : _i4.allowInterop(fillText),
      measureText: measureText == null ? null : _i4.allowInterop(measureText),
      strokeText: strokeText == null ? null : _i4.allowInterop(strokeText),
    );