Files
Marvin Möltgen 199e27e47e refactor: Simpler project structure (#3555)
* refactor: Simpler project structure

* fix dependabot
2023-01-09 17:44:58 +01:00

20 lines
445 B
Dart

class AppHelper {
const AppHelper._();
//static const String APP_PACKAGE = 'smooth_app';
static const String? APP_PACKAGE = null;
static String getAssetPath(String asset) {
if (asset.startsWith('/')) {
asset = asset.substring(1);
} else if (asset.startsWith('packages/')) {
return asset;
}
assert(asset.isNotEmpty);
return asset;
}
static String get defaultAssetPath => getAssetPath('assets/');
}