getVersionName method

  1. @override
Future<String?> getVersionName()
override

Implementation

@override
Future<String?> getVersionName() async {
  try {
    final version =
        await methodChannel.invokeMethod<String>('getVersionName');
    return version;
  } catch (e) {
    debugPrint("Failed to get version name: $e");
    return null; // Or handle the error as appropriate for your app
  }
}