feat : new injection logic
test : some file :) chore : upgrade android gradle
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
part 'tmp_locations.g.dart';
|
||||
|
||||
@HiveType(typeId: 100)
|
||||
class TmpLocations extends HiveObject{
|
||||
|
||||
@HiveField(0)
|
||||
double? lat;
|
||||
|
||||
|
||||
@HiveField(1)
|
||||
double? long;
|
||||
|
||||
TmpLocations({this.lat, this.long});
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'tmp_locations.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// TypeAdapterGenerator
|
||||
// **************************************************************************
|
||||
|
||||
class TmpLocationsAdapter extends TypeAdapter<TmpLocations> {
|
||||
@override
|
||||
final typeId = 100;
|
||||
|
||||
@override
|
||||
TmpLocations read(BinaryReader reader) {
|
||||
final numOfFields = reader.readByte();
|
||||
final fields = <int, dynamic>{
|
||||
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
||||
};
|
||||
return TmpLocations()
|
||||
..lat = (fields[0] as num?)?.toDouble()
|
||||
..long = (fields[1] as num?)?.toDouble();
|
||||
}
|
||||
|
||||
@override
|
||||
void write(BinaryWriter writer, TmpLocations obj) {
|
||||
writer
|
||||
..writeByte(2)
|
||||
..writeByte(0)
|
||||
..write(obj.lat)
|
||||
..writeByte(1)
|
||||
..write(obj.long);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => typeId.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is TmpLocationsAdapter &&
|
||||
runtimeType == other.runtimeType &&
|
||||
typeId == other.typeId;
|
||||
}
|
||||
Reference in New Issue
Block a user