getPlatformVersion method

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

Retrieves the platform version.

This method should be implemented to return a Future that resolves to a String representing the current platform version.

Throws an UnimplementedError if the platform-specific implementation is not provided.

Implementation

@override
Future<String?> getPlatformVersion() async {
  final version = await WallpaperPlatform.instance.getPlatformVersion();
  return version;
}