Skip to content

Instantly share code, notes, and snippets.

@reasje
Created February 8, 2022 19:16
Show Gist options
  • Save reasje/321eee3107326c342617fec395289935 to your computer and use it in GitHub Desktop.
Save reasje/321eee3107326c342617fec395289935 to your computer and use it in GitHub Desktop.
import 'package:hive/hive.dart';
import 'package:hive_tut/models/timedetail_model.dart';
part 'note_model.g.dart';
@HiveType(typeId: 0)
class Note {
@HiveField(0)
String title;
@HiveField(1)
String desc;
@HiveField(2)
List<String> tags;
@HiveField(3)
TimeDetail timeDetail;
Note(this.title, this.desc, this.tags,this.timeDetail);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment