feat: package info
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import 'package:injectable/injectable.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
@module
|
||||
abstract class PackageInfoDi {
|
||||
@preResolve // karena butuh async init
|
||||
@lazySingleton
|
||||
Future<PackageInfo> get packageInfo => PackageInfo.fromPlatform();
|
||||
}
|
||||
Reference in New Issue
Block a user