LinuxIconGenerator class
Minimal Linux launcher icon writer (upstream #666 / #186 / #604 /
#629). Resizes the source PNG to a single configurable size and
writes to a known path under linux/. Out of scope for v1: hicolor
multi-size set, .desktop rewriting, Flatpak/Snap.
- Inheritance
-
- Object
- IconGenerator
- LinuxIconGenerator
Constructors
- LinuxIconGenerator(IconGeneratorContext context)
- Creates a LinuxIconGenerator.
Properties
- context → IconGeneratorContext
-
Contains config
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOptedIn → bool
-
Whether the user opted into this platform in the config (e.g.
generate: truefor web/windows/macos, or a truthyandroid/iostoggle). Distinct from validateRequirements, which can also fail for opted-in platforms with broken configs. Used to suppress the "Creating Icons for X" header when the platform isn't even configured (upstream #476).no setteroverride - platformName → String
-
Name of the platform this IconGenerator is created for.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createIcons(
) → Future< void> -
Creates icons for this platform.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateRequirements(
) → bool -
Should return
trueif this platform has all the requirements to create icons. This runs before to createIconsoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited