Created
November 22, 2020 18:13
-
-
Save utkarsh-UK/3f4af121d9e6226d0e0685b7d2bb03d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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