lib: format
This commit is contained in:
@@ -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 &&
|
||||
|
||||
@@ -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});
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user