forId static method

AnchorKey? forId(
  1. Key? parentKey,
  2. String? id
)

Implementation

static AnchorKey? forId(Key? parentKey, String? id) {
  if (parentKey == null || id == null || id.isEmpty || id == "[[No ID]]") {
    return null;
  }

  return AnchorKey._(parentKey, id);
}