SketchyModel class

A model representing a paragraph with highlighted sentences.

This model is used to define a paragraph and a list of sentences or phrases within the paragraph that should be highlighted, underlined, circled, etc.

Example:

SketchyModel paragraphModel = SketchyModel(
  paragraph: "This is a sample paragraph with highlighted text.",
  highlightSentances: [
    SketchySentance(
      text: "highlighted text",
      sketchyColor: Colors.yellow,
      sketchyType: SketchyType.highlight,
    ),
  ],
);

Constructors

SketchyModel.new({required String paragraph, required List<SketchySentance> highlightSentances})
Creates a SketchyModel instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
highlightSentances List<SketchySentance>
A list of sentences or phrases within the paragraph that should be styled.
getter/setter pair
paragraph String
The main paragraph text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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