getVersion static method

Future<String> getVersion()

Get the app version string (e.g., "1.0.0")

Implementation

static Future<String> getVersion() async {
  final info = await getPackageInfo();
  return info.version;
}