getNameFromPath static method

String? getNameFromPath(
  1. String? path
)

Returns the name part from a fully qualified node path.

@param path the fully qualified path of which the name is extracted @return the name part of the path

Implementation

static String? getNameFromPath(String? path) {
  if (path == null) {
    return null;
  }
  return path
      .substring(path.lastIndexOf(GenericController.pathDelimiter) + 1);
}