DiffLabels class

The words a diff view shows, and announces to screen readers.

Every label has an English default. To translate a view, extend this class, override what you need, and pass an instance to the view.

Constructors

DiffLabels()
The English labels.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
noFiles → String
Shown when there are no files at all.
no setter
noNewlineAtEnd → String
The tooltip on a last line that has no line break.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

changedLine(DiffLineKind kind, int? number) → String
What screen readers announce before an added or removed line. number is its line number in the new or the old file.
fileHeader(FileDiff file) → String
What screen readers announce for a file's header.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notice(DiffNotice notice) → String
Shown in place of a file's lines.
showUnchangedLines(int count) → String
The bar that shows count hidden unchanged lines.
status(FileDiffKind kind) → String?
The badge for a file's status. null shows no badge.
toString() → String
A string representation of this object.
inherited

Operators

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