From 9b3dd5acd711eb9c49492ad5b0079b13a793ca9b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 1 Feb 2023 11:39:55 +0100 Subject: [PATCH] chore: bump dart to 2.18 Allows us to get rid of some null assertions. --- pubspec.yaml | 2 +- test/commands_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 48a6f258..285fb751 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ homepage: https://famedly.com repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.18.0 <3.0.0" dependencies: async: ^2.8.0 diff --git a/test/commands_test.dart b/test/commands_test.dart index 33068ab8..aecdcb6a 100644 --- a/test/commands_test.dart +++ b/test/commands_test.dart @@ -36,7 +36,7 @@ void main() { final state = stateKey != null; return json.decode(FakeMatrixApi.calledEndpoints.entries .firstWhere((e) => e.key.startsWith( - '/client/v3/rooms/${Uri.encodeComponent(room.id)}/${state ? 'state' : 'send'}/${Uri.encodeComponent(type)}${state && stateKey?.isNotEmpty == true ? '/${Uri.encodeComponent(stateKey!)}' : ''}')) + '/client/v3/rooms/${Uri.encodeComponent(room.id)}/${state ? 'state' : 'send'}/${Uri.encodeComponent(type)}${state && stateKey.isNotEmpty == true ? '/${Uri.encodeComponent(stateKey)}' : ''}')) .value .first); }