copyWith method
Aplication
copyWith({
- List? accountActivationMethod,
- String? name,
- String? authType,
- List<
String> ? authFields, - List<
String> ? passwordRecoveryMethod, - bool? isActive,
- bool? allowRegister,
- Client? client,
- DateTime? createdAt,
- DateTime? updatedAt,
- String? gClientId,
- String? gClientSecret,
- List<
String> ? authSocial, - String? fAppId,
- String? fAppSecret,
- String? id,
Implementation
Aplication copyWith({
List<dynamic>? accountActivationMethod,
String? name,
String? authType,
List<String>? authFields,
List<String>? passwordRecoveryMethod,
bool? isActive,
bool? allowRegister,
Client? client,
DateTime? createdAt,
DateTime? updatedAt,
String? gClientId,
String? gClientSecret,
List<String>? authSocial,
String? fAppId,
String? fAppSecret,
String? id,
}) {
return Aplication(
accountActivationMethod:
accountActivationMethod ?? this.accountActivationMethod,
name: name ?? this.name,
authType: authType ?? this.authType,
authFields: authFields ?? this.authFields,
passwordRecoveryMethod:
passwordRecoveryMethod ?? this.passwordRecoveryMethod,
isActive: isActive ?? this.isActive,
allowRegister: allowRegister ?? this.allowRegister,
client: client ?? this.client,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
gClientId: gClientId ?? this.gClientId,
gClientSecret: gClientSecret ?? this.gClientSecret,
authSocial: authSocial ?? this.authSocial,
fAppId: fAppId ?? this.fAppId,
fAppSecret: fAppSecret ?? this.fAppSecret,
id: id ?? this.id,
);
}