getVersionCheck method
Check if the cookbook app version is supported by this client.
Also returns the supported APP version.
Implementation
Future<VersionCheck> getVersionCheck() async {
final response = await misc.version();
final version = response.body.cookbookVersion;
BuiltList<Version>? versions;
if (version != null) {
versions = BuiltList([
Version(
version[0].asNum as int,
version[1].asNum as int,
version[2].asNum as int,
),
]);
}
return VersionCheck(
versions: versions,
minimumVersion: minAppVersion,
);
}