PrintCommand.block constructor

PrintCommand.block(
  1. String text, {
  2. double? x,
  3. double? y,
  4. double? width,
  5. double? height,
  6. int? lineWidth = 0,
  7. int? lineStyle = 0,
})

Implementation

factory PrintCommand.block(
  String text, {
  double? x,
  double? y,
  double? width,
  double? height,
  int? lineWidth = 0,
  int? lineStyle = 0,
}) {
  return PrintCommand(
    text: '',
    isBlock: true,
    blockText: text,
    x: x,
    y: y,
    blockWidth: width,
    blockHeight: height,
    blockLineWidth: lineWidth,
    blockLineStyle: lineStyle,
  );
}