IntentFile class

Represents a file received from an App Intent parameter.

Maps to iOS IntentFile which wraps file data, MIME type, and filename. Used with @IntentParam(fileType: 'public.image') to accept file inputs.

Constructors

IntentFile({required String path, String? mimeType, String? filename})
const
IntentFile.fromMap(Map<String, dynamic> map)
factory

Properties

filename String?
The original filename.
final
hashCode int
The hash code for this object.
no setteroverride
mimeType String?
The MIME type of the file (e.g., 'image/jpeg').
final
path String
The file path (typically a temporary file path).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override