From 607658dcdabe8831edfbfe11f03256ca97589cad Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 19 Aug 2021 10:19:51 +0200 Subject: [PATCH] refactor: Null safe QueuedToDeviceEvent and fix CamelCase filename --- ...euedToDeviceEvent.dart => queued_to_device_event.dart} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename lib/src/utils/{QueuedToDeviceEvent.dart => queued_to_device_event.dart} (91%) diff --git a/lib/src/utils/QueuedToDeviceEvent.dart b/lib/src/utils/queued_to_device_event.dart similarity index 91% rename from lib/src/utils/QueuedToDeviceEvent.dart rename to lib/src/utils/queued_to_device_event.dart index bf4296f7..3296510f 100644 --- a/lib/src/utils/QueuedToDeviceEvent.dart +++ b/lib/src/utils/queued_to_device_event.dart @@ -1,4 +1,3 @@ -// @dart=2.9 /* * Famedly Matrix SDK * Copyright (C) 2019, 2020 Famedly GmbH @@ -24,7 +23,12 @@ class QueuedToDeviceEvent { final String txnId; final Map content; - QueuedToDeviceEvent({this.id, this.type, this.txnId, this.content}); + QueuedToDeviceEvent({ + required this.id, + required this.type, + required this.txnId, + required this.content, + }); factory QueuedToDeviceEvent.fromJson(Map json) => QueuedToDeviceEvent(