canUpdate property
bool
get
canUpdate
Implementation
bool get canUpdate {
final local = localVersion?.split('.').map(int.parse).toList();
final store = storeVersion?.split('.').map(int.parse).toList();
for (var i = 0; i < store!.length; i++) {
// store version field is newer than the local version.
if (store[i] > local![i]) {
return true;
}
// local version field is newer than the store version.
if (local[i] > store[i]) {
return false;
}
}
// local and store versions are the same.
return false;
}