MockBloomUpdateClientAdapter class

In-memory mock client adapter used in development and tests.

Implemented types

Constructors

MockBloomUpdateClientAdapter({UpdateManifest? mockAvailableManifest})
Creates a MockBloomUpdateClientAdapter.

Properties

downloadShouldSucceed bool
Whether patch download simulation should succeed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mockAvailableManifest UpdateManifest?
Mock manifest to return on check.
getter/setter pair
purgeTriggered bool
Whether purgeActivePatch was called.
getter/setter pair
reloadTriggered bool
Whether triggerAppReload was called.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkServerForUpdate({required String channel, required String branch, required String runtimeFingerprint, required String deviceId}) Future<UpdateManifest?>
Queries the update server for an available update manifest matching channel, branch, and runtimeFingerprint.
override
downloadPatchAssets({required UpdateManifest manifest, required void onProgress(double progress)}) Future<bool>
Downloads patch binary assets with onProgress reporting.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purgeActivePatch() Future<void>
Purges active staged patch from local storage.
override
toString() String
A string representation of this object.
inherited
triggerAppReload() Future<void>
Triggers runtime reload or hot restart to apply staged patch.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited