BackgroundTypePattern class final

A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user

Inheritance

Constructors

BackgroundTypePattern({required BackgroundFill fill, required int intensity, required bool isInverted, required bool isMoving})
A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user
const
BackgroundTypePattern.fromJson(Map<String, dynamic> json)
Parses a BackgroundTypePattern from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
fill → BackgroundFill
Fill of the background
final
hashCode → int
The hash code for this object.
no setterinherited
intensity → int
Intensity of the pattern when it is shown above the filled background; 0-100.
final
isInverted → bool
True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only
final
isMoving → bool
True, if the background needs to be slightly moved when device is tilted
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({BackgroundFill? fill, int? intensity, bool? isInverted, bool? isMoving}) → BackgroundTypePattern
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.