PlatformSummary class
Basic information about the native platform running the app.
Constructors
- PlatformSummary({required String manufacturer, required String brand, required String model, required String device, required String product, required int androidSdk, required String androidRelease, String? platformName, String? osName, String? osVersion, String? localizedModel, String? appEnvironment, bool? isPhysicalDevice, bool? isSimulator, int? physicalMemoryBytes, int? processorCount, int? activeProcessorCount, String? thermalState, bool isIosNative = false})
-
Creates a platform summary with native platform details.
const
-
PlatformSummary.fromMap(Map<
Object?, Object?> map) -
Creates a PlatformSummary from a map returned by the native platform.
factory
Properties
- activeProcessorCount → int?
-
Active processor count, when safely available.
final
- androidRelease → String
-
The Android release version, such as 14 or 15.
final
- androidSdk → int
-
The Android SDK version number.
final
- appEnvironment → String?
-
Safe app/device runtime environment hint, such as
deviceorsimulator.final - brand → String
-
The consumer-facing device brand reported by Android.
final
- device → String
-
The device code name reported by Android.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isIosNative → bool
-
Whether this summary was produced by the iOS native implementation.
final
- isPhysicalDevice → bool?
-
Whether the app is running on physical hardware, when safely known.
final
- isSimulator → bool?
-
Whether the app is running in a simulator, when safely known.
final
- localizedModel → String?
-
Localized device model reported by the native platform, when available.
final
- manufacturer → String
-
The device manufacturer, such as Google, Samsung, Xiaomi, or Apple.
final
- model → String
-
The device model reported by Android.
final
- osName → String?
-
Operating system name reported by the native platform.
final
- osVersion → String?
-
Operating system version reported by the native platform.
final
- physicalMemoryBytes → int?
-
Physical memory in bytes, when safely available.
final
- platformName → String?
-
Lowercase platform name, such as
androidorios, when provided.final - processorCount → int?
-
Total processor count, when safely available.
final
- product → String
-
The product name reported by Android.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thermalState → String?
-
Current thermal state, when safely available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object> - Converts this summary to a map using the native field names.
-
toString(
) → String -
Returns a readable string containing all summary fields.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited