Watermark class

Watermark profile

Available Extensions
Annotations
  • @CopyWith(skipFields: true)
  • @JsonSerializable()

Constructors

Watermark({String? id, int? size, int? width, int? height, DateTime? created, WatermarkPosition? position, double? scale, double? opacity, double? padding, String? name, String? downloadedFrom})
Watermark.fromJson(Map<String, dynamic> json)
factory

Properties

created DateTime
When the watermark profile was created.
final
downloadedFrom String?
The source URL to the image where it was downloaded from. If the watermark profile was created via direct upload, this field will be null.
final
hashCode int
The hash code for this object.
no setterinherited
height int
Height of the image in pixels.
final
id String
Watermark profile unique identifier.
final
name String?
A short description for the profile.
final
opacity double
Translucency of the image. 0.0 means completely transparent, and 1.0 means completely opaque. Note that if the image is already semi-transparent, setting this to 1.0 will not make it completely opaque.
final
padding double
Whitespace between the adjacent edges (determined by position) of the video and the image. 0.0 means no padding, and 1.0 means padded full video width or length, determined by the algorithm.
final
position WatermarkPosition
Location of the image. Valid positions are: "upperRight", "upperLeft", "lowerLeft", "lowerRight", and "center". Note that "center" will ignore the "padding" parameter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. 0.0 means no scaling (use the size of the image as-is), and 1.0 fills the entire video.
final
size int
The size of the image in bytes.
final
width int
Width of the image in pixels.
final

Methods

fromJsonList(List? jsonList) List<Watermark>?
inherited
fromJsonMap(Map<String, dynamic>? json) Watermark?
fromJsonString(String? json) Watermark?
inherited
fromJsonStringList(String? jsonStringList) List<Watermark>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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