PathMatcher.callback constructor

PathMatcher.callback(
  1. bool callback(
    1. String path
    )
)

Creates a PathMatcher that uses a callback function to match paths.

Implementation

factory PathMatcher.callback(
  bool Function(String path) callback,
) {
  return CallbackPathMatcher(callback);
}