DocumentUtils class
Utility class for handling document-related checks in a file system environment.
This implementation is designed for platforms with direct file system access,
such as Windows, macOS, and Linux. The filePath parameter should be a valid
local file path.
Constructors
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
- 
  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
Static Methods
- 
  hasPDFExtension(String filePath) → bool 
- 
  Checks if the given file path has a PDF extension.
Returns trueif the file has a.pdfextension, otherwisefalse.
- 
  isImage(String filePath) → Future< bool> 
- Determines whether the given file path corresponds to an image file.
- 
  isPDF(String filePath) → Future< bool> 
- Determines whether the given file path corresponds to a PDF file.