Picker class
Provides a file picker function.
The file picker function defined in PickerAdapter is available.
By default, a FilePickerAdapter is used, which can utilize the functionality of the file_picker
package.
You can pick up a single file with pickSingle and multiple files with pickMultiple.
With pickCamera, you can start the mobile camera and pick up the media files you have taken. (Compatible adapters only)
ファイルピッカー機能を提供します。
PickerAdapterで定義されたファイルピッカー機能を利用可能です。
デフォルトの場合、file_picker
パッケージの機能を利用できるFilePickerAdapterが使用されます。
pickSingleで単数のファイルをピックアップでき、pickMultipleで複数ファイルをピックアップできます。
pickCameraでモバイルのカメラを起動し撮影したメディアファイルをピックアップすることができます。 (対応アダプターのみ)
- Inheritance
-
- Object
- ChangeNotifier
- Picker
Constructors
- Picker({PickerAdapter? adapter})
- Provides a file picker function.
Properties
- adapter → PickerAdapter
-
PickerAdapter] to be used.
no setter
-
future
→ Future<
void> ? -
It is possible to wait while the file is being picked up.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
pickCamera(
{String? dialogTitle, PickerFileType type = PickerFileType.any}) → Future< PickerValue> - Start the camera and pick up the captured media file.
-
pickMultiple(
{String? dialogTitle, PickerFileType type = PickerFileType.any}) → Future< List< PickerValue> > - Pick up multiple files.
-
pickSingle(
{String? dialogTitle, PickerFileType type = PickerFileType.any}) → Future< PickerValue> - Pick up a single file.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited