attributeFor method

  1. @override
Attribute<Object?>? attributeFor(
  1. String prefix
)
override

The block attribute to apply when prefix (line start → caret, including the trailing space) matches this shortcut, or null when it does not.

Implementation

@override
Attribute<Object?>? attributeFor(String prefix) =>
    prefix == '> ' ? Attributes.blockquote : null;