Merge branch 'nico/dart-2.18' into 'main'

chore: bump dart to 2.18

See merge request famedly/company/frontend/famedlysdk!1234
This commit is contained in:
td 2023-02-08 13:02:48 +00:00
commit d981fcd2f9
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 repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.18.0 <3.0.0"
dependencies: dependencies:
async: ^2.8.0 async: ^2.8.0

View File

@ -36,7 +36,7 @@ void main() {
final state = stateKey != null; final state = stateKey != null;
return json.decode(FakeMatrixApi.calledEndpoints.entries return json.decode(FakeMatrixApi.calledEndpoints.entries
.firstWhere((e) => e.key.startsWith( .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 .value
.first); .first);
} }