DVMemoryConfig class final
The parsed dartvel.memory section, with any device-profile overrides.
Properties
-
deviceProfiles
→ Iterable<
String> -
The device profiles this configuration read.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
problems
→ List<
String> -
What could not be read. Each names the key it is about. A problem is
never resolved into a default silently: the value is left out, and this
says so.
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
-
profilePlatform(
String id) → String? -
deviceProfiles.<id>.platform, when declared. -
profileRam(
String id) → DVSize? -
deviceProfiles.<id>.ram, when declared. -
resolve(
DVMemoryTarget target, {String? deviceProfile}) → DVMemorySettings -
The settings for
target, withdeviceProfile's memory override over the target entry, over the top-level values, over the profile defaults. -
toString(
) → String -
A string representation of this object.
inherited
-
touchPagesRefusedOn(
DVMemoryTarget target, {String? deviceProfile}) → bool -
Whether configuration asks for touchPages on a target that refuses it
(
DV-MEMORY-004).touchPages: desktopasks only for desktops, so it is never a refusal.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
Object? dartvelSection) → DVMemoryConfig -
Reads
memoryanddeviceProfiles.<id>.{memory, ram, platform}out of a project'sdartvel:section.
Constants
- none → const DVMemoryConfig
- Nothing configured: every target gets its profile defaults.
-
targetKeys
→ const Map<
String, List< DVMemoryTarget> > - The configuration keys a target entry may use.