DoubleConverter class
A JSON converter that converts string values to double.
Handles special cases:
- "infinite" -> double.infinity
- "-infinite" -> double.negativeInfinity
- "20" -> 20.0
- null -> null
- double values -> pass through
Constructors
- DoubleConverter.new()
-
Creates a DoubleConverter that converts string values to double.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromJson(
dynamic json) → double? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
double? object) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited