FileSaverIcon class

Customable icon for FileSaver.

FileSaverIcon(icon: (path) => Icon(Icons.file));

Constructors

FileSaverIcon({required Widget icon(String path)})
Set default icon for every fileType.
const
FileSaverIcon.directory({required Widget icon(String path)})
Set icon for directory.
const
FileSaverIcon.file({required String fileType, required Widget icon(String path)})
Set icon for certain fileType.
const

Properties

fileType String
Set which file extension whose icon will be changed.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget Function(String path)
Set new custom icon by using any widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
To detect which type of icon will be changed.
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