Skip to content

Commit

Permalink
Fix list cast
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbengtsson committed Jun 22, 2023
1 parent a113e9e commit a5cc9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/intent_receiver.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class IntentReceiver {
const eventChannel = EventChannel('io.flown.airdash/event_communicator');
eventChannel.receiveBroadcastStream().listen((event) async {
List<File> files = [];
for (String url in event as List<String>) {
for (String url in List<String>.from(event as List)) {
if (url.startsWith('http')) {
var parsed = Uri.parse(url);
callback(UrlPayload(parsed), null);
Expand Down

0 comments on commit a5cc9af

Please sign in to comment.