import 'package:intl/intl.dart'; class Note { final String date; late final String displayDate; String content; String? snippet; bool isProblematic; String problemReason; Note({ required this.date, required this.content, this.snippet, this.isProblematic = false, this.problemReason = '', }) { final dtUtc = DateFormat('yyyy-MM-dd HH:mm:ss').parse(date, true); final dtLocal = dtUtc.toLocal(); displayDate = DateFormat('yyyy-MM-dd HH:mm:ss').format(dtLocal); } } class Scratch { final String date; String content; Scratch({required this.date, required this.content}); }