StringDiff class
Result of SpannedTextEditingController.diffStrings.
Constructors
- StringDiff(int index, Characters deleted, Characters inserted)
-
Create a string diff.
const
- StringDiff.empty()
- Create a string diff that indicates no changes.
Properties
- deleted → Characters
-
Deleted text.
final
- deletedRange → Range
-
Range in the old text that was deleted.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Index where text was changed.
final
- inserted → Characters
-
Inserted text.
final
- isEmpty → bool
-
True if the diff indicates the compared strings where identical.
no setter
- isNotEmpty → bool
-
True if the diff indicates the compared strings where not identical.
no setter
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited