TermsOfService class final

TermsOfService (termsOfService) - basic class

Contains Telegram terms of service.

  • text: Text of the terms of service.
  • minUserAge: The minimum age of a user to be able to accept the terms; 0 if age isn't restricted.
  • showPopup: True, if a blocking popup with terms of service must be shown to the user.
Inheritance

Constructors

TermsOfService({required FormattedText text, required int minUserAge, required bool showPopup})
TermsOfService (termsOfService) - basic class
const
TermsOfService.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
hashCode int
The hash code for this object.
no setterinherited
minUserAge int
The minimum age of a user to be able to accept the terms; 0 if age isn't restricted
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showPopup bool
True, if a blocking popup with terms of service must be shown to the user
final
text FormattedText
Text of the terms of service
final

Methods

copyWith({FormattedText? text, int? minUserAge, bool? showPopup}) TermsOfService
Copy model with modified properties.
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