PatchInfo class

Information about a code patch

Constructors

PatchInfo({required String patchId, required String version, required DateTime createdAt, required int size, required String downloadUrl, required String signature, String platform = 'android', String? changelog, bool mandatory = false, int rolloutPercentage = 100, String? minAppVersion, String? maxAppVersion})
PatchInfo.fromJson(Map<String, dynamic> json)
Manual JSON serialization (replacing code generation)
factory

Properties

changelog String?
Changelog/description of the patch
final
createdAt DateTime
Timestamp when patch was created
final
downloadProgress int
Patch download completion percentage (0-100)
getter/setter pair
downloadUrl String
Download URL for the patch
final
errorMessage String?
Error message if patch failed
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mandatory bool
Whether this patch is mandatory
final
maxAppVersion String?
Maximum app version allowed
final
minAppVersion String?
Minimum app version required
final
patchId String
Unique patch identifier
final
platform String
Target platform (android or ios)
final
rolloutPercentage int
Percentage of users to receive this patch (0-100)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature String
Ed25519 signature for verification
final
size int
Size of the patch in bytes
final
status ↔ PatchStatus
Current patch status
getter/setter pair
version String
Version of the patch
final

Methods

isApplicable(String currentAppVersion) bool
Whether this patch should be applied to current app version
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Manual JSON deserialization (replacing code generation)
toString() String
A string representation of this object.
override

Operators

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