schemeOf static method

String? schemeOf(
  1. String path
)

The scheme of path, or null when it has none.

Implementation

static String? schemeOf(String path) => _scheme.firstMatch(path)?.group(1);