getPlatformVersion method

Future<String> getPlatformVersion()

Get the platform version

Implementation

Future<String> getPlatformVersion() async {
  try {
    return await _repository.getPlatformVersion();
  } catch (e) {
    if (e is MediaError) {
      rethrow;
    }
    throw MediaErrorFactory.platformError(
      platform: 'unknown',
      message: 'Failed to get platform version: ${e.toString()}',
      code: 'PLATFORM_VERSION_FAILED',
    );
  }
}