PaperFormat.roll constructor

const PaperFormat.roll({
  1. required String id,
  2. String name = '',
  3. required double widthMm,
  4. required double heightMm,
})

Implementation

const PaperFormat.roll({
  required this.id,
  this.name = '',
  required double widthMm,
  required double heightMm,
}) : feed = PaperFeed.roll,
     pageWidthMm = widthMm,
     pageHeightMm = heightMm,
     columns = 1,
     rows = 1,
     cellWidthMm = widthMm,
     cellHeightMm = heightMm,
     marginTopMm = 0,
     marginLeftMm = 0,
     gapXMm = 0,
     gapYMm = 0;