BackgroundTypePattern class final

BackgroundTypePattern (backgroundTypePattern) - child of BackgroundType

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.

  • fill: Fill of the background.
  • intensity: Intensity of the pattern when it is shown above the filled background; 0-100.
  • isInverted: 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.
  • isMoving: True, if the background needs to be slightly moved when device is tilted.
Inheritance

Constructors

BackgroundTypePattern({required BackgroundFill fill, required int intensity, required bool isInverted, required bool isMoving})
BackgroundTypePattern (backgroundTypePattern) - child of BackgroundType
const
BackgroundTypePattern.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
Client ID, from which this object was received
no setterinherited
currentObjectId String
TDLib object type for current class instance
no setteroverride
extra → dynamic
A sign from TDLib update
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
Copy model with modified properties.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() String
Convert model to TDLib JSON format, encoded into String.
override

Operators

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

Constants

defaultObjectId → const String
TDLib object type