AppSizeStore class
Holds the most recently opened --analyze-size JSON analysis, if any, for the DevTools App Size tab.
- Inheritance
-
- Object
- ChangeNotifier
- AppSizeStore
Constructors
Properties
- errorMessage → String?
-
Set when the most recent loadFromJson or runQuickScan call failed; cleared by the next call, success or not.
no setter
- fileName → String?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isLive → bool
-
True when root came from runQuickScan (the live installed bundle) rather than an imported
--analyze-sizefile.no setter - loadedAt → DateTime?
-
no setter
- platform → String?
-
apk,aab,ios,macos,windows, orlinux— from the imported JSON'stypefield, orPlatform.operatingSystemafter runQuickScan.no setter - root → SizeAnalysisNode?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clear(
) → void -
dispose(
) → void -
Discards any resources used by the object.
inherited
-
loadFromJson(
String jsonText, {required String fileName}) → void -
Parses
jsonText(a*-code-size-analysis_*.jsonfile's contents) and, if it looks valid, replaces the loaded analysis; on failure, leaves any previously loaded analysis in place and sets errorMessage. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
runQuickScan(
Future< BundleScanResult?> scan()) → Future<void> -
Runs
scan(normally scanInstalledBundle, overridable so callers — e.g. widget tests — can substitute a fake instead of touching the real filesystem) for a live size breakdown; on failure, leaves any previously loaded analysis in place and sets errorMessage. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited