CacheObject class Null safety

Cache Object class to Handle Data

Inheritance

Constructors

CacheObject(Map<String, dynamic> _data)

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
validator List<String>
Required Fields will be checked in validation
read-only, override

Methods

getBoolValue(String key, {bool defaultValue = false}) bool
Return Bool Value from Data
inherited
getData() Map<String, dynamic>
override
getDoubleValue(String key, {double defaultValue = 0}) double
Return Double Value from Data
inherited
getIntValue(String key, {int defaultValue = 0}) int
Return Int Value from Data
inherited
getOnly(List<String> keys) Map<String, dynamic>
Returns Map with specified Keys in List<String> keys
inherited
getStringValue(String key, {String defaultValue = ''}) String
Return String Value from Data
inherited
hasData() bool
CacheObject has Data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setData(Map<String, dynamic> data) → dynamic
Set Data
inherited
setValue(String key, dynamic value) → dynamic
Set Value in Data
inherited
toString() String
A string representation of this object. [...]
inherited
validate({List<String>? optionalValidator}) bool
Validates Data
@mustCallSuper, inherited

Operators

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