Switch docs in NullAwareTypeConverter

This commit is contained in:
Simon Binder 2021-07-09 17:49:28 +02:00
parent b57d23084a
commit d3f757235f
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 3 additions and 3 deletions

View File

@ -58,8 +58,7 @@ abstract class NullAwareTypeConverter<D, S> extends TypeConverter<D, S> {
return fromDb == null ? null : requireMapToDart(fromDb);
}
/// Map a non-null value from an object in Dart into something that will be
/// understood by the database.
/// Maps a non-null column from the database back to Dart.
D requireMapToDart(S fromDb);
@override
@ -67,6 +66,7 @@ abstract class NullAwareTypeConverter<D, S> extends TypeConverter<D, S> {
return value == null ? null : requireMapToSql(value);
}
/// Maps a non-null column from the database back to Dart.
/// Map a non-null value from an object in Dart into something that will be
/// understood by the database.
S requireMapToSql(D value);
}