getPlatformVersion method

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

Retrieves the platform version of the device.

This function returns the operating system version of the device. It is useful for checking the OS version for conditional logic.

Returns:

  • A Future that resolves to a String containing the platform version.
  • Returns null if the version cannot be determined.

Example Usage:

String? version = await getPlatformVersion();
print("Platform Version: $version");

This method should be implemented to provide actual functionality.

Implementation

@override
Future<String?> getPlatformVersion() async {
  return await ThanPkg.android.app.getPlatformVersion();
}