attributesWithLink method

int attributesWithLink(
  1. int baseAttributes,
  2. int linkId
)

Packs linkId into a native text attribute word.

Implementation

int attributesWithLink(int baseAttributes, int linkId) {
  _checkUnsignedAbi(baseAttributes, 0xFFFFFFFF, 'baseAttributes');
  _checkUnsignedAbi(linkId, 0xFFFFFFFF, 'linkId');
  return _guard(
    'Failed to encode hyperlink attributes',
    () => _native.attributesWithLink(baseAttributes, linkId),
  );
}