FeatureManager class

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

getDouble(Feature feature) double?
Retrieves a double value associated with the given feature.
getInt(Feature feature) int?
Retrieves an integer value associated with the given feature from the shared preferences.
getJson(Feature feature) Map<String, dynamic>?
Retrieves and decodes a JSON string from the provided Feature object, returning the decoded Map<String, dynamic> or null if the string is empty or null.
getString(Feature feature) String?
Retrieves a string value from the shared preferences based on the provided feature key.
getValue(Feature feature) Object?
Retrieves the value associated with the given feature from the shared preferences.
isEnabled(Feature feature) bool
Determines if the given feature is enabled.
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

dispose() → void
Disposes the instance of the class.
getInstance() Future<FeatureManager>
Retrieves the instance of the FeatureManager class.