/// Configuration class that holds application settings. /// /// This class contains environment-specific configuration values /// such as API base URL and logging settings. class AppConfig { /// The base URL for API requests. final String apiBaseUrl; /// Whether logging is enabled in the application. final bool enableLogging; /// Creates an [AppConfig] instance with the provided values. /// /// [apiBaseUrl] - The base URL for API requests. /// [enableLogging] - Whether logging should be enabled. const AppConfig({ required this.apiBaseUrl, required this.enableLogging, }); @override String toString() { return 'AppConfig(apiBaseUrl: $apiBaseUrl, enableLogging: $enableLogging)'; } @override bool operator ==(Object other) { if (identical(this, other)) return true; return other is AppConfig && other.apiBaseUrl == apiBaseUrl && other.enableLogging == enableLogging; } @override int get hashCode => apiBaseUrl.hashCode ^ enableLogging.hashCode; }