mirror of
https://github.com/immich-app/immich.git
synced 2026-02-22 03:00:24 -05:00
28 lines
650 B
Dart
28 lines
650 B
Dart
class ServerConfig {
|
|
final String? oauthButtonText;
|
|
|
|
const ServerConfig({this.oauthButtonText});
|
|
|
|
ServerConfig copyWith({String? oauthButtonText}) {
|
|
return ServerConfig(
|
|
oauthButtonText: oauthButtonText ?? this.oauthButtonText,
|
|
);
|
|
}
|
|
|
|
const ServerConfig.initial() : oauthButtonText = null;
|
|
|
|
@override
|
|
String toString() =>
|
|
'ServerConfig(oauthButtonText: ${oauthButtonText ?? '<NULL>'})';
|
|
|
|
@override
|
|
bool operator ==(covariant ServerConfig other) {
|
|
if (identical(this, other)) return true;
|
|
|
|
return other.oauthButtonText == oauthButtonText;
|
|
}
|
|
|
|
@override
|
|
int get hashCode => oauthButtonText.hashCode;
|
|
}
|