copyWith method

Aplication copyWith({
  1. List? accountActivationMethod,
  2. String? name,
  3. String? authType,
  4. List<String>? authFields,
  5. List<String>? passwordRecoveryMethod,
  6. bool? isActive,
  7. bool? allowRegister,
  8. Client? client,
  9. DateTime? createdAt,
  10. DateTime? updatedAt,
  11. String? gClientId,
  12. String? gClientSecret,
  13. List<String>? authSocial,
  14. String? fAppId,
  15. String? fAppSecret,
  16. 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,
  );
}