ImagePlacement constructor

const ImagePlacement({
  1. required String id,
  2. required int col,
  3. required int row,
  4. required int cols,
  5. required int rows,
  6. InlineImageFit fit = InlineImageFit.contain,
  7. int? boxCols,
  8. int? boxRows,
  9. int boxOffsetCol = 0,
  10. int boxOffsetRow = 0,
})

Implementation

const ImagePlacement({
  required this.id,
  required this.col,
  required this.row,
  required this.cols,
  required this.rows,
  this.fit = InlineImageFit.contain,
  int? boxCols,
  int? boxRows,
  this.boxOffsetCol = 0,
  this.boxOffsetRow = 0,
}) : boxCols = boxCols ?? cols,
     boxRows = boxRows ?? rows;