lib: format

This commit is contained in:
2025-05-16 21:06:19 +02:00
parent 84ae7eca9e
commit 3f267b78d3
16 changed files with 360 additions and 96 deletions
+2 -1
View File
@@ -197,7 +197,8 @@ class Sense extends SQLWritable {
'orderNum': orderNum,
};
bool get isEmpty => antonyms.isEmpty &&
bool get isEmpty =>
antonyms.isEmpty &&
dialects.isEmpty &&
fields.isEmpty &&
info.isEmpty &&
+4 -2
View File
@@ -128,7 +128,8 @@ Future<void> seedJMDictData(List<Entry> entries, Database db) async {
for (final e in entries) {
for (final s in e.senses) {
b.insert(JMdictTableNames.sense, s.sqlValue..addAll({'entryId': e.entryId}));
b.insert(
JMdictTableNames.sense, s.sqlValue..addAll({'entryId': e.entryId}));
for (final d in s.dialects) {
b.insert(
JMdictTableNames.senseDialect,
@@ -136,7 +137,8 @@ Future<void> seedJMDictData(List<Entry> entries, Database db) async {
);
}
for (final f in s.fields) {
b.insert(JMdictTableNames.senseField, {'senseId': s.senseId, 'field': f});
b.insert(
JMdictTableNames.senseField, {'senseId': s.senseId, 'field': f});
}
for (final i in s.info) {
b.insert(JMdictTableNames.senseInfo, {'senseId': s.senseId, 'info': i});
+1 -1
View File
@@ -3,7 +3,7 @@ abstract class SQLWritable {
const SQLWritable();
/// Returns a map of the object's properties and their values.
///
///
/// Note that there might be properties in the object which is meant to be
/// inserted into a different table. These properties will/should be excluded
/// from this map.