DeviceCapabilities class final

What the phone offers, as the native probe reports it (MB = 1024 * 1024 bytes); null when unknown.

Constructors

DeviceCapabilities({int? physicalMemoryMB, int? availableMemoryMB, int? freeDiskMB})
const
DeviceCapabilities.fromJson(Map<Object?, Object?>? json)
Reads the keys physicalMemoryMB, availableMemoryMB and freeDiskMB; a missing, negative or non-numeric value is unknown.
factory

Properties

availableMemoryMB → int?
Memory the app may still use: iOS os_proc_available_memory (the per-process limit, raised by the increased-memory-limit entitlement), Android ActivityManager availMem.
final
freeDiskMB → int?
Space for important data on the volume holding the models.
final
hashCode → int
The hash code for this object.
no setteroverride
isUnknown → bool
no setter
physicalMemoryMB → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

unknown → const DeviceCapabilities