chore(repo): add lints, update freezed, json_serializable

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-05-16 16:58:24 +05:30
committed by xsahil03x
parent 2499755a05
commit 069f380f41
170 changed files with 616 additions and 737 deletions
@@ -48,8 +48,9 @@ void main() {
final channelState = ChannelState(
channel: ChannelModel.fromJson(j['channel']),
members: [],
messages:
(j['messages'] as List).map((m) => Message.fromJson(m)).toList(),
messages: (j['messages'] as List<Map<String, dynamic>>)
.map(Message.fromJson)
.toList(),
read: [],
watcherCount: 5,
pinnedMessages: [],
@@ -123,7 +123,7 @@ void main() {
test('custom', () {
const key = 'testKey';
const value = 'testValue';
const operator = '\$customOperator';
const operator = r'$customOperator';
const filter = Filter.custom(operator: operator, key: key, value: value);
expect(filter.key, key);
expect(filter.value, value);