PdfContentNumber class
Integer or real number.
raw holds the lexeme exactly as it came from the stream (for example
0.0000 or +3), which allows reserializing without changing the numeric
notation.
- Inheritance
-
- Object
- PdfContentValue
- PdfContentNumber
Constructors
- PdfContentNumber(double value, [String? raw])
-
Creates a number with
valueand, optionally, the original lexemeraw.const - PdfContentNumber.fromInt(int value)
- Creates an integer number.
Properties
- asInt → int
-
Value truncated to an integer.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- raw → String?
-
Original lexeme, when the number came from an existing stream.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → double
-
Numeric value, already converted.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Textual representation used in debug messages.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override