Skip to main content
Methods like fileFormattedSize() and fileToBase64String() use synchronous I/O (lengthSync, readAsBytesSync) and should be run off the main thread (e.g., in an Isolate or compute) for large files to prevent UI jank.

1

🔗 Path & Naming

String
Retrieves the absolute path of the file.
String
Retrieves the file extension (the part after the last dot), e.g., “png”, “pdf”.
String
Retrieves the file name without the extension. “pdf”.
2

🖼️ Content & Type Checks

String
Reads the file contents synchronously and converts them to a Base64 encoded string.