BBStylesheet class

A BBStylesheet contains all style related information required to render a text that contains BBCode including the parsers for tags.

Constructors

BBStylesheet({required Iterable<AbstractTag> tags, TextStyle? defaultText, bool selectableText = false})
Constructor for a BBStylesheet. Requires at least a list of tags to be supplied.

Properties

defaultTextStyle TextStyle
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectableText bool
final
tags Map<String, AbstractTag>
no setter
validTags Set<String>
Gets a list of all currently available tags.
no setter

Methods

addTag(AbstractTag tag) BBStylesheet
Add a tag to this style.
copyWith({TextStyle? defaultTextStyle, bool? selectableText}) BBStylesheet
Copies the existing Stylesheet while allowing to modify some properties.
getTag(String tag) AbstractTag?
Returns the possible tag from the stylesheet.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeTag(String tag) → void
Removes a tag from this stylesheet.
replaceTag(AbstractTag tag) BBStylesheet
Replace a tag from this style.
toString() String
A string representation of this object.
inherited

Operators

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