EzSettings class

Static class to access the different types of settings.

  • Access the EZ Flutter setting via EzSettings.az()
  • Access your environment settings via EzSettings.env()
  • Access your application settings via EzSettings.app()
  • Access your shared preference settings via EzSettings.sp()
  • Access your external settings via EzSettings.ex()

Constructors

EzSettings()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

app() → Map<String, dynamic>
Return the application settings
env() → Map<String, dynamic>
Return the environment settings
ez() → Map<String, dynamic>
Return the EZ Flutter settings
init({String envPath, String applicationPath, String externalUrl, Map<String, String> queryParameters Map<String, String> headers }) → Future
sp() → Map<String, dynamic>
Return the shared preferences settings
updateSp(String key, dynamic value) → Future
Update a value in the shared preferences settings

Constants

KEY_APP_SETTINGS → const String
"app_settings"
KEY_ENV_SETTINGS → const String
"env_settings"
KEY_EXTERNAL_SETTINGS → const String
"external_settings"
KEY_EZ_SETTINGS → const String
"ez_settings"
KEY_EZ_SHARED_PREFERENCES → const String
"ez_shared_preferences"
KEY_SP_SETTINGS → const String
"shared_preferences"
PATH_EZ_SETTINGS → const String
"assets/ez_settings.json"
TAG → const String
"EzSettings"