VideoTextOverlay class

Constructors

VideoTextOverlay({required String id, required String text, double x = 0.5, double y = 0.5, double fontSize = 64, Color color = VideoEditorColors.textPrimary, Duration startTime = Duration.zero, Duration? endTime, double rotation = 0.0, double scale = 1.0, TextOverlayStyle style = TextOverlayStyle.outline, Color backgroundColor = VideoEditorColors.textLabelBackground, bool bold = true, String? stickerPath})
VideoTextOverlay.fromJson(Map<String, dynamic> json)
factory

Properties

backgroundColor ↔ Color
Fill of the label box when style is TextOverlayStyle.box.
getter/setter pair
bold ↔ bool
getter/setter pair
color ↔ Color
getter/setter pair
effectiveEndTime → Duration
End of the visible range, defaulting to three seconds after the start.
no setter
endTime ↔ Duration?
getter/setter pair
fontSize ↔ double
Font size in pixels on a canvas whose short side is kTextReferenceShortSide.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isImageSticker → bool
no setter
rotation ↔ double
Rotation in radians around the text centre.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale ↔ double
getter/setter pair
startTime ↔ Duration
getter/setter pair
stickerPath → String?
Image file drawn instead of text (an image sticker). Emoji stickers are plain text overlays and leave this null.
final
style ↔ TextOverlayStyle
getter/setter pair
text ↔ String
getter/setter pair
x ↔ double
Normalized centre of the text on the canvas: 0.0 to 1.0.
getter/setter pair
y ↔ double
getter/setter pair

Methods

copy() → VideoTextOverlay
copyWith({String? id, String? text, double? x, double? y, double? fontSize, Color? color, Duration? startTime, Duration? endTime, double? rotation, double? scale, TextOverlayStyle? style, Color? backgroundColor, bool? bold, String? stickerPath}) → VideoTextOverlay
isVisibleAt(Duration time) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited