JsonCacheHollow class
Hollow (empty) JsonCache — It is intended to serve as a placeholder for JsonCache instances.
There will always be at most one JsonCacheHollow object in memory during
program execution. It doesn't matter how many times someone instantiates
objects using const JsonCacheHollow()
.
hollow
having a hole or empty space inside:
- a hollow tube
- Hollow blocks are used because they are lighter
- a hollow log — Cambridge Dictionary
- Implemented types
Constructors
- JsonCacheHollow()
-
This const constructor ensures that there will be only one
JsonCacheHollow instance throughout the program.
const
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
-
clear(
) → Future< void> -
Does nothing.
override
-
contains(
String key) → Future< bool> -
Always returns
false
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
String key, Map< String, dynamic> value) → Future<void> -
Does nothing.
override
-
remove(
String key) → Future< void> -
Does nothing.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
value(
String key) → Future< Map< String, dynamic> ?> -
Always returns
null
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited