VersionCheckService class

📦 Version Check Service

Uygulamanın güncel olup olmadığını kontrol eder. Minimum sürüm dışardan verilir, Remote Config'ten alınmaz.

Kullanım:

final service = VersionCheckService(
  minimumVersion: '1.7.8',
  forceUpdate: true,
  storeUrl: 'https://play.google.com/store/apps/details?id=...',
);
final status = await service.checkForUpdates();

if (status.updateRequired) {
  UpdateRequiredDialog.show(
    forceUpdate: status.forceUpdate,
    storeUrl: status.storeUrl,
  );
}

Constructors

VersionCheckService({required String version, required bool force, required String storeUrl})

Properties

force → bool
GĂĽncelleme zorunlu mu?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storeUrl → String
App Store / Google Play URL'si
final
version → String
Minimum gerekli versiyon
final

Methods

checkForUpdates() → Future<VersionCheckStatus>
🔍 Sürüm güncelleme kontrolü
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