CountAdjustment class

A manual, incremental count adjustment.

External counting services (outside the editor) can report how a batch of edits changed a document without re-counting everything: they only hand the deltas. Negative values decrease the counters; nothing ever goes below zero.

Constructors

CountAdjustment({int words = 0, int characters = 0})
const

Properties

characters int
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
words int
final

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 +(CountAdjustment other) CountAdjustment
operator ==(Object other) bool
The equality operator.
inherited

Constants

zero → const CountAdjustment