21 lines
506 B
Dart
21 lines
506 B
Dart
class AppSettings {
|
|
const AppSettings({
|
|
required this.serverUrl,
|
|
required this.companyIdentifier,
|
|
});
|
|
|
|
final String serverUrl;
|
|
final String companyIdentifier;
|
|
|
|
bool get isConfigured => serverUrl.isNotEmpty && companyIdentifier.isNotEmpty;
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
other is AppSettings &&
|
|
other.serverUrl == serverUrl &&
|
|
other.companyIdentifier == companyIdentifier;
|
|
|
|
@override
|
|
int get hashCode => Object.hash(serverUrl, companyIdentifier);
|
|
}
|