Skip to content

Instantly share code, notes, and snippets.

@utkarsh-UK
Created November 22, 2020 18:13
Show Gist options
  • Save utkarsh-UK/3f4af121d9e6226d0e0685b7d2bb03d4 to your computer and use it in GitHub Desktop.
Save utkarsh-UK/3f4af121d9e6226d0e0685b7d2bb03d4 to your computer and use it in GitHub Desktop.
import 'package:hive/hive.dart';
part 'cache_user_model.g.dart';
@HiveType(typeId: 1)
class CacheUserModel extends HiveObject {
@HiveField(0)
final String email;
@HiveField(1)
final String name;
@HiveField(2)
final String phone;
final String role;
CacheUserModel(this.email, this.name, this.phone, this.role);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment