SizeConfig class

Config of the optional size: manifest section (S7). Each leg is optional: the consumer declares the legs it ships.

Constructors

SizeConfig({String? nativePackage, String? nativeEntry, String? nativeArch, String? webWith, String? webWithout})
const

Properties

arch → String
no setter
entry → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasNative → bool
Whether the consumer declared the native leg.
no setter
hasWeb → bool
Whether the consumer declared the web leg (with + without targets).
no setter
nativeArch → String?
Android ABI of the native analyze-size build. Default: x64 (the cheapest single-ABI build; deterministic per ABI).
final
nativeEntry → String?
App target that imports the solution (native analyze-size build). Default: lib/main.dart (the default apk target).
final
nativePackage → String?
Solution's pub package name (native leg): the analyze-size tree node package:<this> is summed. Null → the native leg is not declared.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
webWith → String?
Web target WITH the solution. Null → the web leg is not declared.
final
webWithEntry → String
no setter
webWithout → String?
Web target WITHOUT the solution (the structurally identical baseline). Required for the web leg.
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

Static Methods

fromYaml(dynamic doc) → SizeConfig?
Parses the size: map of the manifest; null when the section is absent (S7 not declared).

Constants

defaultArch → const String
Default android ABI.
defaultEntry → const String
Default app target of the native analyze-size build.
defaultWebWith → const String
Default web target that imports the solution.