CacheData<T> constructor

CacheData<T>(
  1. String _tag,
  2. {T defaultValue,
  3. TypeSerialize<T> serialize,
  4. TypeDeserialize<T> deserialize}
)

Implementation

CacheData(this._tag,
    {T defaultValue,
    TypeSerialize<T> serialize,
    TypeDeserialize<T> deserialize})
    : _serialize = serialize,
      _deserialize = deserialize {
  _data = _load(defaultValue);
}