PickResult class

Model returned when a file is picked.

Contains:

  • file name
  • extension
  • type (image/video/audio/document/other)
  • actual File reference (mobile/desktop only)

Constructors

PickResult({required String name, required String extension, required PickFileType type, required File? file})

Properties

extension → String
File extension without dot (e.g., "png")
final
file → File?
Actual file reference (null on Web)
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Picked file name (e.g., "photo.png")
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → PickFileType
File media type
final

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
inherited