basepath property

Option<String> get basepath

A string representing the basepath location of the call.

Implementation

Option<String> get basepath {
  try {
    return call().map(
      (e) => [
        p.basenameWithoutExtension(e.library),
        if (e.member != null) e.member,
      ].join('/'),
    );
  } catch (_) {
    return const None();
  }
}