style: Apply team linter in stream chat persistence (#331)

* lint(persistence): Apply team linter

Signed-off-by: Sahil Kumar <[email protected]>

* style: flutter format

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-03-15 10:23:44 +01:00
committed by GitHub
parent a8443a98b0
commit 8ec54f3834
30 changed files with 813 additions and 772 deletions
@@ -6,7 +6,7 @@ import 'package:moor/moor.dart';
/// by the sqlite backend.
class ListConverter<T> extends TypeConverter<List<T>, String> {
@override
List<T> mapToDart(fromDb) {
List<T> mapToDart(String fromDb) {
if (fromDb == null) {
return null;
}
@@ -14,7 +14,7 @@ class ListConverter<T> extends TypeConverter<List<T>, String> {
}
@override
String mapToSql(value) {
String mapToSql(List<T> value) {
if (value == null) {
return null;
}
@@ -6,7 +6,7 @@ import 'package:moor/moor.dart';
/// by the sqlite backend.
class MapConverter<T> extends TypeConverter<Map<String, T>, String> {
@override
Map<String, T> mapToDart(fromDb) {
Map<String, T> mapToDart(String fromDb) {
if (fromDb == null) {
return null;
}
@@ -14,7 +14,7 @@ class MapConverter<T> extends TypeConverter<Map<String, T>, String> {
}
@override
String mapToSql(value) {
String mapToSql(Map<String, T> value) {
if (value == null) {
return null;
}