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
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object 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<void> -
sp(
) → Map< String, dynamic> - Return the shared preferences settings
-
updateSp(
String key, dynamic value) → dynamic - Update a value in the shared preferences settings
Constants
- KEY_APP_SETTINGS → const String
- KEY_ENV_SETTINGS → const String
- KEY_EXTERNAL_SETTINGS → const String
- KEY_EZ_SETTINGS → const String
- KEY_EZ_SHARED_PREFERENCES → const String
- KEY_SP_SETTINGS → const String
- PATH_EZ_SETTINGS → const String
- TAG → const String