MFIcon constructor

const MFIcon(
  1. String fileName, {
  2. Key? key,
  3. double? size,
  4. Color? color,
  5. Widget placeholder = const Icon(Icons.insert_drive_file),
})

Creates a widget that displays an icon based on the file name or extension.

Implementation

const MFIcon(
  this.fileName, {
  super.key,
  this.size,
  this.color,
  this.placeholder = const Icon(Icons.insert_drive_file),
});