stripPrefixOpt method

Option<WindowsPath> stripPrefixOpt(
  1. WindowsPath prefix
)

Returns a path that, when joined onto base, yields this. Returns None/null if prefix is not a subpath of base.

Implementation

@pragma('vm:prefer-inline')
Option<WindowsPath> stripPrefixOpt(WindowsPath prefix) =>
    Option.of(stripPrefix(prefix));