MacOsDeviceInfo class
Object encapsulating MACOS device information.
- Inheritance
-
- Object
- BaseDeviceInfo
- MacOsDeviceInfo
Properties
- activeCPUs → int
-
Number of active CPUs
final
- arch → String
-
Machine cpu architecture
Note, that on Apple Silicon Macs can return
x86_64
if app runs via Rosettafinal - computerName → String
-
Name given to the local machine.
final
- cpuFrequency → int
-
Device CPU Frequency
final
-
data
→ Map<
String, dynamic> -
Device information data
Warning: The returned Map may not be JSON-encodable.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostName → String
-
Operating system type
final
- kernelVersion → String
-
Machine Kernel version.
Examples:
Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64
orDarwin Kernel Version 15.0.0: Wed Dec 9 22:19:38 PST 2015; root:xnu-3248.31.3~2/RELEASE_ARM64_S8000
final - majorVersion → int
-
The major release number, such as 10 in version 10.9.3.
final
- memorySize → int
-
Machine's memory size
final
- minorVersion → int
-
The minor release number, such as 9 in version 10.9.3.
final
- model → String
-
Device model identifier
Examples:
MacBookPro18,3
,Mac16,2
.final - modelName → String
-
Device model name
Examples:
MacBook Pro (16-inch, 2021)
,iMac (24-inch, 2024)
.final - osRelease → String
-
Operating system release number
final
- patchVersion → int
-
The update release number, such as 3 in version 10.9.3.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemGUID → String?
-
Device GUID
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
For legacy purposes
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> map) → MacOsDeviceInfo - Constructs a MacOsDeviceInfo from a Map of dynamic.
-
setMockInitialValues(
{required String computerName, required String hostName, required String arch, required String model, required String modelName, required String kernelVersion, required String osRelease, required int majorVersion, required int minorVersion, required int patchVersion, required int activeCPUs, required int memorySize, required int cpuFrequency, required String systemGUID}) → MacOsDeviceInfo - Initializes the application metadata with mock values for testing.