packageInfo function

  1. @Riverpod.new(keepAlive: true)
Future<PackageInfo> packageInfo(
  1. Ref ref
)

Provides the app's PackageInfo, loaded once and kept alive.

Implementation

@Riverpod(keepAlive: true)
Future<PackageInfo> packageInfo(Ref ref) => PackageInfo.fromPlatform();