LaunchIcon class

A model that encapsulates different types of icons and images for Launchify.

Supports IconData, local assets, and network images. Automatically handles SVG files if the path ends with '.svg'.

Constructors

LaunchIcon.fromAsset(String? path)
Creates a LaunchIcon from an asset path.
const
LaunchIcon.fromIcon(IconData? iconData)
Creates a LaunchIcon from IconData.
const
LaunchIcon.fromNetwork(String? path)
Creates a LaunchIcon from a network URL.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
iconData IconData?
The IconData to display. Used if source is IconSource.icon.
final
path String?
The path to the asset or network image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source IconSource
The source of the icon.
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