TextFile class

Represents a text book file.

This class extends BookFile and adds a content field of type String to hold the text content of the file.

Inheritance

Constructors

TextFile({required String content, required String name, required String type, required String path})
Creates a new TextFile.

Properties

content → String
The text content of the file.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The file name (basename).
finalinherited
path → String
The path of the file inside the book container.
finalinherited
plainText → String
The readable plain text of content (tags stripped, entities decoded, whitespace collapsed). Computed on every access.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The file type (usually the extension without the leading dot).
finalinherited

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