SkinContractRow.anchorExists constructor
SkinContractRow.anchorExists({
- required String id,
- required String anchor,
- SkinTargetPlatform? platform,
A row requiring the typed anchor anchor (a zfa: contractId)
to be present in the live tree.
Implementation
factory SkinContractRow.anchorExists({
required String id,
required String anchor,
SkinTargetPlatform? platform,
}) => SkinContractRow(
id: id,
requirement:
'anchor ${_anchorKey(anchor)} exists'
'${_gateSuffix(platform)}',
check: (facts) =>
_gated(platform, facts) && facts.anchors.contains(_anchorKey(anchor)),
);