VideoTextOverlay constructor

VideoTextOverlay({
  1. required String id,
  2. required String text,
  3. double x = 0.5,
  4. double y = 0.5,
  5. double fontSize = 64,
  6. Color color = VideoEditorColors.textPrimary,
  7. Duration startTime = Duration.zero,
  8. Duration? endTime,
  9. double rotation = 0.0,
  10. double scale = 1.0,
  11. TextOverlayStyle style = TextOverlayStyle.outline,
  12. Color backgroundColor = VideoEditorColors.textLabelBackground,
  13. bool bold = true,
  14. String? stickerPath,
})

Implementation

VideoTextOverlay({
  required this.id,
  required this.text,
  this.x = 0.5,
  this.y = 0.5,
  this.fontSize = 64,
  this.color = VideoEditorColors.textPrimary,
  this.startTime = Duration.zero,
  this.endTime,
  this.rotation = 0.0,
  this.scale = 1.0,
  this.style = TextOverlayStyle.outline,
  this.backgroundColor = VideoEditorColors.textLabelBackground,
  this.bold = true,
  this.stickerPath,
});