resolveParamName static method

String? resolveParamName(
  1. String segment
)

Resolve param name

Implementation

static String? resolveParamName(String segment) {
  return RegExp('^\\[([a-zA-Z0-9_]+)\\]\$').firstMatch(segment)?.group(1);
}