BlockQuoteBlock class

Inheritance

Constructors

BlockQuoteBlock({required dynamic depth, required dynamic start, required dynamic end, required List<String> inlineStyles, required Map<String, dynamic> data, required String text, required List<String> entityTypes, required String blockType, required List<BaseBlock> children})

Properties

blockType String
Block Type
finalinherited
children List<BaseBlock>?
getter/setter pairinherited
data Map<String, dynamic>
Block's data. Usually is image's src
finalinherited
decoration TextDecoration
Get decoration for each block based on their inline styles
no setterinherited
depth int
Draft js property
finalinherited
end int
block's end
finalinherited
entityTypes List<String>
Entity type
finalinherited
fontStyle FontStyle
Get fontstyle for each block based on their inline styles
no setterinherited
fontWeight FontWeight
Get fontweight for each block based on their inline styles
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
inlineStyles List<String>
Inline styles
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
Block's start
finalinherited
text String
Text content
finalinherited
textContent String
Get text content based on the start and end
no setterinherited

Methods

addData(Map<String, dynamic> data) Map<String, dynamic>
Add data to the block
inherited
addEntityType(String? entity) List<String>
Add entity type to the block
inherited
addStyle(String? style) List<String>
Add inline style to the block
inherited
copyWith({BaseBlock? block}) BlockQuoteBlock
override
getBlock(BaseBlock block, List<BasePlugin> plugins) BaseBlock
get block from plugins' rendering map If no match, then use default
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(BuildContext context, {List<InlineSpan>? children}) InlineSpan
Render the current block
override
renderStyle(BuildContext context) TextStyle
Render style based on the block's type and inline styles
inherited
split({required int start, required int end, String? style, String? entity, required Map<String, dynamic> data, required List<BasePlugin> plugins, int? depth}) List<BaseBlock>
Apply inline styles or entity data to the block
inherited
toString() String
A string representation of this object.
inherited
withinRange(int start, int end) bool
If the range within the current block's range
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited