getAppVersion method

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

Returns a placeholder version for the web platform.

The pubspec.yaml version is not directly accessible on the web in the same way it is on mobile.

Implementation

@override
Future<String?> getAppVersion() async {
  // The unused 'location' variable has been removed to clear the lint.
  // final location = web.window.location;

  // 'print' statement removed to clear the lint.
  // print('Web platform detected at: ${location.href}');

  // Return a placeholder string
  return '1.0.0-web';
}