mirrored_repositories/emprius-app-frontend/lib/src/core/services
import 'package:path_provider/path_provider.dart' as pp;

class PathProviderService {
  PathProviderService._();

  static String? _path;

  static String get path {
    if (_path != null) {
      return _path!;
    } else {
      throw Exception('Path not initialized');
    }
  }

  static Future<void> init() async {
    final dir = await pp.getApplicationDocumentsDirectory();
    _path = dir.path;
  }
}
