chore: bump dart to 2.18

Allows us to get rid of some null assertions.
This commit is contained in:
Nicolas Werner 2023-02-01 11:39:55 +01:00
parent ed333c4b7b
commit 9b3dd5acd7
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);
}