DoubleValue class

Value of double type.

Inheritance
Mixed-in types
Annotations
  • @JsonSerializable()

Constructors

DoubleValue.new({required String name, SetValueMode mode = SetValueMode.discrete, double value = 0})
Creates a new DoubleValue.
DoubleValue.discreteZero({required String name, double value = 0, SetValueMode mode = SetValueMode.discrete})
Creates a new DoubleValue where the default value is 0 and mode is discrete.
const
DoubleValue.fromJson(Map json)
Creates a new DoubleValue instance from a JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
mode SetValueMode
Describes how to set the value.
finalinherited
name String
The name of the property to set the value of.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ValueType
The type of the value.
finalinherited
value double
The value to set.
finalinherited

Methods

copyWith({SetValueMode? mode, double? value}) DoubleValue
Duplicate this ValueModel with given data overrides.
override
hasSameType(ValueModel<Object?> other) bool
Whether this ValueModel has the same generic type as other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
Returns a serializable map representation of the object.
override
toString() String
A string representation of this object.
inherited

Operators

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