copyWith method
Session
copyWith({
- int? id,
- bool? isCurrent,
- bool? isPasswordPending,
- bool? canAcceptSecretChats,
- bool? canAcceptCalls,
- int? apiId,
- String? applicationName,
- String? applicationVersion,
- bool? isOfficialApplication,
- String? deviceModel,
- String? platform,
- String? systemVersion,
- int? logInDate,
- int? lastActiveDate,
- String? ip,
- String? country,
- String? region,
- dynamic extra,
- int? clientId,
Implementation
Session copyWith({
int? id,
bool? isCurrent,
bool? isPasswordPending,
bool? canAcceptSecretChats,
bool? canAcceptCalls,
int? apiId,
String? applicationName,
String? applicationVersion,
bool? isOfficialApplication,
String? deviceModel,
String? platform,
String? systemVersion,
int? logInDate,
int? lastActiveDate,
String? ip,
String? country,
String? region,
dynamic extra,
int? clientId,
}) => Session(
id: id ?? this.id,
isCurrent: isCurrent ?? this.isCurrent,
isPasswordPending: isPasswordPending ?? this.isPasswordPending,
canAcceptSecretChats: canAcceptSecretChats ?? this.canAcceptSecretChats,
canAcceptCalls: canAcceptCalls ?? this.canAcceptCalls,
apiId: apiId ?? this.apiId,
applicationName: applicationName ?? this.applicationName,
applicationVersion: applicationVersion ?? this.applicationVersion,
isOfficialApplication: isOfficialApplication ?? this.isOfficialApplication,
deviceModel: deviceModel ?? this.deviceModel,
platform: platform ?? this.platform,
systemVersion: systemVersion ?? this.systemVersion,
logInDate: logInDate ?? this.logInDate,
lastActiveDate: lastActiveDate ?? this.lastActiveDate,
ip: ip ?? this.ip,
country: country ?? this.country,
region: region ?? this.region,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);