From 19d06920e2c7e9bb0d8ec6c601675a6bba316421 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 29 Aug 2019 10:05:17 +0200 Subject: [PATCH] [Room] LastEvent can be null --- lib/src/Room.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Room.dart b/lib/src/Room.dart index a6c86bd..7a77783 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -126,7 +126,7 @@ class Room { Event get lastEvent { ChatTime lastTime = ChatTime(0); - Event lastEvent = Event(); + Event lastEvent = null; states.forEach((String key, RoomState state) { if (state.time > lastTime) { lastTime = state.time;