TF-624 Remove generate file cache .g

This commit is contained in:
dab246
2022-06-08 14:18:09 +07:00
committed by Dat H. Pham
parent ff5a951a37
commit 0d551984fb
7 changed files with 0 additions and 397 deletions
@@ -1,44 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'recent_search_cache.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class RecentSearchCacheAdapter extends TypeAdapter<RecentSearchCache> {
@override
final int typeId = 7;
@override
RecentSearchCache read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return RecentSearchCache(
fields[0] as String,
fields[1] as DateTime,
);
}
@override
void write(BinaryWriter writer, RecentSearchCache obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.value)
..writeByte(1)
..write(obj.creationDate);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is RecentSearchCacheAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}