init static method

Future<void> init()

Implementation

static Future<void> init()
async
{
    final pi.PackageInfo packageInfo = await pi.PackageInfo.fromPlatform();
    appName = packageInfo.appName;
    buildNumber = packageInfo.buildNumber;
    packageName = packageInfo.packageName;
    version = packageInfo.version;
}