DefaultsController class abstract

Controller for getting and setting key-value pair in the backend.

Inheritance
Implementers

Constructors

DefaultsController(RenovationConfig config)

Properties

config RenovationConfig
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCache() → void
Clears the cache or residual objects.
inherited
getCore() Renovation
Gets the reference to the Renovation instance
inherited
getDefault({required String key, String? parent}) Future<RequestResponse>
Gets the value given the key. Can specify the parent if the key is duplicated under a different parent.
getHostUrl() String
Returns the configured host URL towards the backend
inherited
handleError(String errorId, ErrorDetail error) → ErrorDetail
Returns the ErrorDetail after manipulating an existing one.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDefaults({required String key, required dynamic value, String? parent}) Future<RequestResponse>
Sets a default value in backend for a specified key and return nothing if successful.
toString() String
A string representation of this object.
inherited

Operators

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