FileService class
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
Static Methods
-
createMdFile(String title, String content)
→ Future<File?>
-
-
downloadBase64Image(String imageUrl)
→ Future<void>
-
-
downloadImage(String imageUrl)
→ Future<void>
-
-
downloadKbFile(String fileId, String fileName, String assistandId, String conversationId, bool isMarketplace)
→ Future<void>
-
-
editImage(File file)
→ Future<Uint8List?>
-
-
generateImageName()
→ String
-
-
getFileFromDevice({bool allowMultiple = false})
→ Future<List<File>>
-
-
getFileIcon(String fileExtension)
→ IconData
-
-
getFileType(String filePath)
→ String
-
-
getImageFromCamera()
→ Future<Uint8ListWithName?>
-
-
getImageFromGallery({bool allowMultiple = false})
→ Future<List<Uint8ListWithName>>
-
-
getImageFromUrl(String imageUrl)
→ Future<Uint8List?>
-
-
getMimeType(String ext)
→ String
-
Guess a MIME type from extension (very simple)
-
saveToDownloads(String content, String fileName, String extension)
→ Future<bool>
-
-
saveToDownloadsAndroid(String content, String fileName, String extension)
→ Future<bool>
-
-
saveToDownloadsIos(String content, String fileName, String extension)
→ Future<bool>
-
-
shareImage(String imageUrl)
→ Future<void>
-