ReportElement constructor

ReportElement({
  1. required String id,
  2. required ReportElementType type,
  3. double x = 0,
  4. double y = 0,
  5. double width = 20,
  6. double height = 10,
  7. double rotation = 0,
  8. int zIndex = 0,
  9. Map<String, dynamic>? properties,
})

Implementation

ReportElement({
  required this.id,
  required this.type,
  this.x = 0,
  this.y = 0,
  this.width = 20,
  this.height = 10,
  this.rotation = 0,
  this.zIndex = 0,
  Map<String, dynamic>? properties,
}) : properties = properties ?? _defaultProperties(type);