XdgFileChooserPortal class
Portal to request access to files.
Constructors
- XdgFileChooserPortal(DBusRemoteObject _object, String _generateToken())
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getVersion(
) → Future< int> - Get the version of this portal.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openFile(
{required String title, String parentWindow = '', String? acceptLabel, bool? modal, bool? multiple, bool? directory, Iterable< XdgFileChooserFilter> filters = const [], XdgFileChooserFilter? currentFilter, Iterable<XdgFileChooserChoice> choices = const []}) → Stream<XdgFileChooserPortalOpenFileResult> - Ask to open one or more files.
-
saveFile(
{required String title, String parentWindow = '', String? acceptLabel, bool? modal, Iterable< XdgFileChooserFilter> filters = const [], XdgFileChooserFilter? currentFilter, Iterable<XdgFileChooserChoice> choices = const [], String? currentName, Uint8List? currentFolder, Uint8List? currentFile}) → Stream<XdgFileChooserPortalSaveFileResult> - Ask for a location to save a file.
-
saveFiles(
{required String title, String parentWindow = '', String? acceptLabel, bool? modal, Iterable< XdgFileChooserChoice> choices = const [], Uint8List? currentFolder, Iterable<Uint8List> files = const []}) → Stream<XdgFileChooserPortalSaveFilesResult> - Ask for a folder as a location to save one or more files.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited