SimpleFileSaverPlatform class abstract

The interface that implementations of simple_file_saver must implement.

Platform implementations should extend this class rather than implement it as SimpleFileSaver does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added SimpleFileSaverPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • SimpleFileSaverPlatform

Constructors

SimpleFileSaverPlatform.new()
Constructs a SimpleFileSaverPlatform.

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

downloadLinkBuilder({required FileSaveInfo fileInfo, LinkTarget target = LinkTarget.blank, required DownloadLinkBuilder builder}) Widget
Build a Link widget to enable the right click option 'save link as' on the web platform
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveFile({required FileSaveInfo fileInfo, bool saveAs = false}) Future<String?>
Save file to the default directory.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance SimpleFileSaverPlatform
The default instance of SimpleFileSaverPlatform to use.
getter/setter pair