improve handling of file intents

This commit is contained in:
Fabian Freund
2025-08-11 17:28:03 +02:00
parent 33700bf509
commit f3731aa5f6
5 changed files with 82 additions and 25 deletions
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v25.5.0), do not edit directly.
// Autogenerated from Pigeon (v26.0.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers
@@ -38,6 +38,7 @@ class Intent {
this.action,
this.data,
required this.categories,
this.mimeType,
required this.extra,
});
@@ -49,6 +50,8 @@ class Intent {
List<String> categories;
String? mimeType;
Map<String, Object?> extra;
List<Object?> _toList() {
@@ -57,6 +60,7 @@ class Intent {
action,
data,
categories,
mimeType,
extra,
];
}
@@ -71,7 +75,8 @@ class Intent {
action: result[1] as String?,
data: result[2] as String?,
categories: (result[3] as List<Object?>?)!.cast<String>(),
extra: (result[4] as Map<Object?, Object?>?)!.cast<String, Object?>(),
mimeType: result[4] as String?,
extra: (result[5] as Map<Object?, Object?>?)!.cast<String, Object?>(),
);
}