TextOverlay class final

A text overlay.

Inheritance

Constructors

TextOverlay({required String id, required OverlayTransform transform, required String text, required TextOverlayStyle style})
Creates a text overlay.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
id → String
Unique within the document.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → TextOverlayStyle
Font, colour, alignment and background.
final
text → String
The text; may contain line breaks.
final
transform → OverlayTransform
Placement on the canvas.
finalinherited

Methods

copyWith({String? text, TextOverlayStyle? style}) → TextOverlay
Returns a copy with the given values replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withTransform(OverlayTransform transform) → TextOverlay
Returns a copy with a new transform.
override

Operators

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