creating first structure of cinema backend server
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
14
server/cinema/lib/feature/version/version.dart
Normal file
14
server/cinema/lib/feature/version/version.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:injectable/injectable.dart';
|
||||
|
||||
@injectable
|
||||
class Version {
|
||||
const Version();
|
||||
|
||||
String get appVersion => const String.fromEnvironment('APP_VERSION');
|
||||
|
||||
void printVersion() {
|
||||
if (appVersion.isNotEmpty) {
|
||||
print('App Version: $appVersion');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user