fromWire static method

NodeKey fromWire(
  1. Object? value
)

Parse a wire path string, re-validating the bounds.

Implementation

static NodeKey fromWire(Object? value) {
  if (value is! String) {
    throw FormatException('NodeKey must be a string, got ${value.runtimeType}');
  }
  return NodeKey(value);
}