PeVersionResource class

The version resource as embedded in a PE image — the image view.

This is not the same question FlutterBin.getBinaryFileMetadata answers. That one asks the OS, which follows MUI satellite resources and is locale dependent; this one reports what the image itself carries. The two agree for most binaries and differ for MUI-based ones (mstsc.exe reports mstsc.exe.mui through the OS and mstsc.exe here).

Constructors

PeVersionResource({required String resourceName, required int languageId, required String fixedFileVersion, required String fixedProductVersion, required List<PeStringTable> stringTables})
const

Properties

fixedFileVersion String
The 4-part dwFileVersion from VS_FIXEDFILEINFO, e.g. 3.66.5.0. Empty when the resource carries no fixed file info.
final
fixedProductVersion String
The 4-part dwProductVersion from VS_FIXEDFILEINFO. Empty when the resource carries no fixed file info.
final
hashCode int
The hash code for this object.
no setterinherited
languageId int
The language id of the resource directory leaf, e.g. 1033.
final
resourceName String
How the RT_VERSION entry is named in the resource directory: #1 for the conventional numeric id, or the name string for images that use one (some windres builds emit VS_VERSION_INFO, which the Win32 version APIs cannot find because they look up the numeric id only).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringTables List<PeStringTable>
Every StringFileInfo table found, in the order the image lists them.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBinaryFileMetadata() BinaryFileMetadata
Maps the image view onto BinaryFileMetadata so callers can reuse code written against the OS-view API.
toString() String
A string representation of this object.
inherited
value(String key) String?
Reads key from the first table that has it, or null when no table does.

Operators

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