PsWarning class abstract base

Describes a recoverable compatibility issue found while decoding.

Format packages extend this class with the source context they track, such as the index of the preset being decoded.

Implementers

Constructors

PsWarning({required String message, int? offset})
Creates a warning at an optional absolute byte offset.
const

Properties

context → String
Source context shown by toString after the byte offset, such as ' in pattern 2', or an empty string.
no setter
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human-readable explanation of the compatibility issue.
final
offset → int?
Absolute byte offset associated with the issue, when known.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeName → String
Type name shown by toString.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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