getAppNameVersion function

Future<({String name, String version})> getAppNameVersion()

Extract the app name and the version from the package info Return a record (with named fields https://dart.dev/language/records)

Implementation

Future<({String name, String version})> getAppNameVersion() async =>
    (name: await AppInfo.name, version: await AppInfo.version);