CarvableString class

Implementers

Constructors

CarvableString(String input, {int offset = 0})
CarvableString.empty()

Properties

carvings SplayTreeSet<Carving<String, String>>
List of carvings to be applied to an input.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
input String
final
offset int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

append(String value, {int? at}) CarvableString
Create a carving that will append a string when applied.
apply() String
Apply the list of carvings currently added to the carvable object.
carve(Carving<String, String> element) → void
Add a carving to the list of carvings.
inherited
carveAll(Iterable<Carving<String, String>> elements) → void
Add a list of carvings to the list of carvings.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(int start, int end) CarvableString
Create a carving that will remove a section when applied.
replace(int start, int end, String replacement) CarvableString
Create a carving that will repalce a section when applied.
toString() String
A string representation of this object.
override

Operators

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