more refactors

This commit is contained in:
shenlong-tanwen
2024-10-19 14:34:42 +05:30
parent e8bb9a3934
commit 3b8951fde6
46 changed files with 598 additions and 435 deletions
@@ -1,5 +1,3 @@
import 'package:openapi/api.dart';
class ServerFeatures {
final bool hasPasswordLogin;
final bool hasOAuthLogin;
@@ -16,12 +14,7 @@ class ServerFeatures {
);
}
factory ServerFeatures.fromDto(ServerFeaturesDto dto) => ServerFeatures(
hasPasswordLogin: dto.passwordLogin,
hasOAuthLogin: dto.oauth,
);
const ServerFeatures.reset()
const ServerFeatures.initial()
: hasPasswordLogin = true,
hasOAuthLogin = false;