copyWith method

LoginEntity copyWith({
  1. int? loginType,
  2. String? clientId,
  3. int? effectTime,
  4. int? code,
  5. LoginAccount? account,
  6. String? token,
  7. LoginProfile? profile,
  8. List<LoginBindings>? bindings,
})

Implementation

LoginEntity copyWith({
  int? loginType,
  String? clientId,
  int? effectTime,
  int? code,
  LoginAccount? account,
  String? token,
  LoginProfile? profile,
  List<LoginBindings>? bindings,
}) {
  return LoginEntity()
    ..loginType = loginType ?? this.loginType
    ..clientId = clientId ?? this.clientId
    ..effectTime = effectTime ?? this.effectTime
    ..code = code ?? this.code
    ..account = account ?? this.account
    ..token = token ?? this.token
    ..profile = profile ?? this.profile
    ..bindings = bindings ?? this.bindings;
}