MacosAppInfo class
Metadata for a discovered macOS app bundle.
appPath identifies an app copy; multiple copies can share a bundle ID.
Constructors
- MacosAppInfo({String? bundleIdentifier, String? appName, String? versionName, String? buildNumber, String? appPath, String? executablePath, bool? isSystem, String? category, String? minimumSystemVersion, Uint8List? iconBytes})
-
Creates app metadata. Unknown or unavailable fields can be null.
const
-
MacosAppInfo.fromMap(Map<
String, Object?> map) -
Creates app metadata from a native method-channel map.
factory
Properties
- appName → String?
-
Localized display name, with a bundle name or filename fallback.
final
- appPath → String?
-
Absolute app bundle path with symlinks resolved.
final
- buildNumber → String?
-
Build identifier from
CFBundleVersion, preserving dotted values as text.final - bundleIdentifier → String?
-
CFBundleIdentifier; not unique across app copies and not always present.final - category → String?
-
App category identifier from
LSApplicationCategoryType.final - executablePath → String?
-
Declared executable path; presence alone does not guarantee launch success.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconBytes → Uint8List?
-
64×64 PNG icon bytes, when requested and available.
final
- isSystem → bool?
-
Whether the app is in a system location, based on its path.
final
- minimumSystemVersion → String?
-
Minimum macOS version declared by
LSMinimumSystemVersion.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- versionName → String?
-
User-facing version from
CFBundleShortVersionString.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