getPathByName method

Path? getPathByName(
  1. String name
)

Get the path specified by name.

Parameters

  • IN name The path name

Returns

  • The path

Throws

  • An exception if it fails.

Implementation

Path? getPathByName(final String name) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapViewPathCollection',
    'getPathByName',
    args: name,
  );

  if (resultString['result'] == 0) {
    return null;
  }
  return Path.init(resultString['result']);
}