chore: bump dart to 2.18
Allows us to get rid of some null assertions.
This commit is contained in:
parent
ed333c4b7b
commit
9b3dd5acd7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue