init method

Future<void> init()

Implementation

Future<void> init() async {
  Uri? res = await Isolate.resolvePackageUri(
      Uri.parse("package:general_lib/general_lib.dart"));
  if (res == null) {
    return;
  }
  String base_path =
      "${Platform.pathSeparator}${res.pathSegments.take(res.pathSegments.length - 2).toList().join(Platform.pathSeparator)}";
  base_directory = Directory(base_path);
  lib_directory = Directory(join(base_directory.path, "lib"));
  return;
}