mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-17 10:12:29 -06:00
WIP - Add system notifications for document upload progress/status
This commit is contained in:
@@ -81,3 +81,14 @@ class _CollectionFromJsonSerializationParams<T> {
|
||||
|
||||
_CollectionFromJsonSerializationParams(this.fromJson, this.list);
|
||||
}
|
||||
|
||||
int getExtendedVersionNumber(String version) {
|
||||
List versionCells = version.split('.');
|
||||
versionCells = versionCells.map((i) => int.parse(i)).toList();
|
||||
return versionCells[0] * 100000 + versionCells[1] * 1000 + versionCells[2];
|
||||
}
|
||||
|
||||
int? tryParseNullable(String? source, {int? radix}) {
|
||||
if (source == null) return null;
|
||||
return int.tryParse(source, radix: radix);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user