|
|
@ -41,6 +41,8 @@ class Attribute<T> { |
|
|
|
|
|
|
|
|
|
|
|
static BlockQuoteAttribute blockQuoteAttribute = BlockQuoteAttribute(); |
|
|
|
static BlockQuoteAttribute blockQuoteAttribute = BlockQuoteAttribute(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool get isInline => scope == AttributeScope.INLINE; |
|
|
|
|
|
|
|
|
|
|
|
static Attribute fromKeyValue(String key, dynamic value) { |
|
|
|
static Attribute fromKeyValue(String key, dynamic value) { |
|
|
|
if (!_registry.containsKey(key)) { |
|
|
|
if (!_registry.containsKey(key)) { |
|
|
|
throw ArgumentError.value(key, 'key "$key" not found.'); |
|
|
|
throw ArgumentError.value(key, 'key "$key" not found.'); |
|
|
|