UDocShape constructor

const UDocShape({
  1. required String id,
  2. required UDocShapeKind kind,
  3. required List<Offset> points,
  4. required Color strokeColor,
  5. required DateTime createdAt,
  6. required DateTime updatedAt,
  7. int pageIndex = -1,
  8. int blockIndex = -1,
  9. Color? fillColor,
  10. double strokeWidth = 0.004,
  11. double opacity = 1,
  12. bool dashed = false,
  13. String text = "",
  14. double fontSize = 0.028,
  15. bool bold = false,
  16. int? startMs,
  17. int? endMs,
})

Implementation

const UDocShape({
  required this.id,
  required this.kind,
  required this.points,
  required this.strokeColor,
  required this.createdAt,
  required this.updatedAt,
  this.pageIndex = -1,
  this.blockIndex = -1,
  this.fillColor,
  this.strokeWidth = 0.004,
  this.opacity = 1,
  this.dashed = false,
  this.text = "",
  this.fontSize = 0.028,
  this.bold = false,
  this.startMs,
  this.endMs,
});