excel icon indicating copy to clipboard operation
excel copied to clipboard

Error Using double cell value

Open gonojuarez opened this issue 1 year ago • 0 comments

I suggest changing the following code `class DoubleCellValue extends CellValue { final double value;

const DoubleCellValue(this.value);

@override String toString() { return value.toString(); }

@override int get hashCode => Object.hash(runtimeType, value);

@override operator ==(Object other) { return other is DoubleCellValue && other.value == value; } }`

the value.toString return null

I suggest to change to this format:

`class DoubleCellValue extends CellValue { final double value;

const DoubleCellValue(this.value);

@override String toString() { return '${value}'; }

@override int get hashCode => Object.hash(runtimeType, value);

@override operator ==(Object other) { return other is DoubleCellValue && other.value == value; } }`

gonojuarez avatar Feb 15 '24 12:02 gonojuarez