copyWith method

PaperConfig copyWith({
  1. PrintDensity? density,
  2. int? linesPerSecond,
})

Implementation

PaperConfig copyWith({PrintDensity? density, int? linesPerSecond}) =>
    PaperConfig(
      widthPixels: widthPixels,
      density: density ?? this.density,
      linesPerSecond: linesPerSecond ?? this.linesPerSecond,
    );