BaseUrlManager class

مدير مبسط للـ Base URL - يسهل الوصول للـ URL الحالي

Properties

currentBaseUrl String
الحصول على الـ Base URL الحالي
no setter
currentEnvironment Environment
الحصول على البيئة الحالية كاملة
no setter
currentEnvironmentName String
الحصول على اسم البيئة الحالية
no setter
environments Map<String, Environment>
الحصول على جميع البيئات
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEnvironment(Environment environment) Future<void>
إضافة بيئة جديدة
clear() Future<void>
مسح جميع البيانات
getConfigValue<T>(String key) → T?
الحصول على قيمة إعداد
getEnvironment(String name) Environment?
الحصول على بيئة معينة
hasEnvironment(String name) bool
التحقق من وجود بيئة معينة
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEnvironment(String name) Future<void>
حذف بيئة
resetToDefaults() Future<void>
إعادة تعيين للافتراضي
setConfigValue(String key, dynamic value) Future<void>
تعيين قيمة إعداد
setEnvironment(String name) Future<void>
تبديل البيئة
toString() String
A string representation of this object.
inherited
updateEnvironment(String name, Environment environment) Future<void>
تحديث بيئة موجودة

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance BaseUrlManager
no setter

Static Methods

createCustomEnv({required String name, required String baseUrl, String? description, Map<String, dynamic>? config, bool isDefault = false}) Environment
إنشاء بيئة مخصصة
createDevelopmentEnv({required String baseUrl, String? description, Map<String, dynamic>? config}) Environment
Create custom development environment
createProductionEnv({required String baseUrl, String? description, Map<String, dynamic>? config}) Environment
Create custom production environment
createStagingEnv({required String baseUrl, String? description, Map<String, dynamic>? config}) Environment
Create custom staging environment